add --keep-runtime-typing argument to pyupgrade (#1639)

Per https://github.com/celery/kombu/pull/1632 @thedrow asked to add this argument so `Optional` is still used.
This commit is contained in:
Jason Barnett 2023-01-02 13:42:23 -05:00 committed by GitHub
parent 3722f6fa18
commit bdd0672a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ repos:
rev: v3.3.1
hooks:
- id: pyupgrade
args: ["--py37-plus"]
args: ["--py37-plus", "--keep-runtime-typing"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0