diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03288402b068fa..e8d63e1a170856 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: pyupgrade name: pyupgrade entry: pyupgrade - args: ['--py38-plus'] + args: ['--py38-plus', '--keep-runtime-typing'] language: system types: [python] # We can't change this mock to unittest.mock until Python 3.8,