diff --git a/pytype/pyi/parser.py b/pytype/pyi/parser.py index 3f73e851d..aee6fcbf7 100644 --- a/pytype/pyi/parser.py +++ b/pytype/pyi/parser.py @@ -982,7 +982,7 @@ def new_function( # Extract out abstractmethod and coroutine decorators, there should be at # most one remaining decorator. def _check_decorator(decorators, decorator_set): - exists = any([x in decorators for x in decorator_set]) + exists = any(x in decorators for x in decorator_set) if exists: decorators -= decorator_set return exists