Merge pull request #11360 from seanjedi/issue_11356-fixing-precommit-issue-with-flake8
fix: fixing an issue with pre-commit with mypy and flake8
This commit is contained in:
commit
941b203c94
1
AUTHORS
1
AUTHORS
|
@ -336,6 +336,7 @@ Samuele Pedroni
|
||||||
Sanket Duthade
|
Sanket Duthade
|
||||||
Sankt Petersbug
|
Sankt Petersbug
|
||||||
Saravanan Padmanaban
|
Saravanan Padmanaban
|
||||||
|
Sean Malloy
|
||||||
Segev Finer
|
Segev Finer
|
||||||
Serhii Mozghovyi
|
Serhii Mozghovyi
|
||||||
Seth Junot
|
Seth Junot
|
||||||
|
|
|
@ -15,7 +15,7 @@ from py.path import local
|
||||||
def ignore_encoding_warning():
|
def ignore_encoding_warning():
|
||||||
with warnings.catch_warnings():
|
with warnings.catch_warnings():
|
||||||
with contextlib.suppress(NameError): # new in 3.10
|
with contextlib.suppress(NameError): # new in 3.10
|
||||||
warnings.simplefilter("ignore", EncodingWarning)
|
warnings.simplefilter("ignore", EncodingWarning) # type: ignore [name-defined] # noqa: F821
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue