From 19d6b12b2a98f273a082f83cc8d469ab5db4e155 Mon Sep 17 00:00:00 2001 From: Sean Malloy Date: Sun, 27 Aug 2023 15:03:42 -0700 Subject: [PATCH] fix: fixing an issue with pre-commit with mypy and flake8 --- AUTHORS | 1 + testing/_py/test_local.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 313e507f2..6fa7a41eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -336,6 +336,7 @@ Samuele Pedroni Sanket Duthade Sankt Petersbug Saravanan Padmanaban +Sean Malloy Segev Finer Serhii Mozghovyi Seth Junot diff --git a/testing/_py/test_local.py b/testing/_py/test_local.py index 91b14aa2e..57e2d91f9 100644 --- a/testing/_py/test_local.py +++ b/testing/_py/test_local.py @@ -15,7 +15,7 @@ from py.path import local 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