diff --git a/pytype/pyi/parser.py b/pytype/pyi/parser.py index 6020e52e9..4b95602d5 100644 --- a/pytype/pyi/parser.py +++ b/pytype/pyi/parser.py @@ -985,7 +985,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