Skip to content

Commit

Permalink
Merge pull request pytest-dev#11360 from seanjedi/issue_11356-fixing-…
Browse files Browse the repository at this point in the history
…precommit-issue-with-flake8

fix: fixing an issue with pre-commit with mypy and flake8
  • Loading branch information
bluetech authored Aug 28, 2023
2 parents 17e8f2b + 19d6b12 commit 941b203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ Samuele Pedroni
Sanket Duthade
Sankt Petersbug
Saravanan Padmanaban
Sean Malloy
Segev Finer
Serhii Mozghovyi
Seth Junot
Expand Down
2 changes: 1 addition & 1 deletion testing/_py/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def ignore_encoding_warning():
with warnings.catch_warnings():
with contextlib.suppress(NameError): # new in 3.10
warnings.simplefilter("ignore", EncodingWarning)
warnings.simplefilter("ignore", EncodingWarning) # type: ignore [name-defined] # noqa: F821
yield


Expand Down

0 comments on commit 941b203

Please sign in to comment.