File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111gil_enabled_at_start = True
1212if FREE_THREADED_BUILD :
13- gil_enabled_at_start = sys ._is_gil_enabled () # type: ignore[attr-defined]
13+ gil_enabled_at_start = sys ._is_gil_enabled () # type: ignore[attr-defined,unused-ignore ]
1414
1515
1616def pytest_report_header (config : pytest .Config ) -> str :
@@ -28,7 +28,7 @@ def pytest_terminal_summary(terminalreporter: pytest.TerminalReporter) -> None:
2828 if (
2929 FREE_THREADED_BUILD
3030 and not gil_enabled_at_start
31- and sys ._is_gil_enabled () # type: ignore[attr-defined]
31+ and sys ._is_gil_enabled () # type: ignore[attr-defined,unused-ignore ]
3232 ):
3333 tr = terminalreporter
3434 tr .ensure_newline ()
Original file line number Diff line number Diff line change @@ -187,7 +187,6 @@ lint.isort.required-imports = [
187187max_supported_python = " 3.15"
188188
189189[tool .mypy ]
190- python_version = " 3.11"
191190disallow_subclassing_any = false
192191disallow_untyped_calls = false
193192warn_return_any = false
Original file line number Diff line number Diff line change @@ -1195,8 +1195,9 @@ class Collector(BytesIO):
11951195 data = []
11961196
11971197 def write (self , data : Buffer ) -> int :
1198- self .data .append (data )
1199- return len (data )
1198+ data_bytes = bytes (data )
1199+ self .data .append (data_bytes )
1200+ return len (data_bytes )
12001201
12011202 im .load () # make sure raster data is available
12021203
You can’t perform that action at this time.
0 commit comments