File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import sys
1717import warnings
1818from collections .abc import Iterator
19- from typing import Any
2019
2120from setuptools import Extension , setup
2221from setuptools .command .build_ext import build_ext
@@ -148,7 +147,7 @@ class RequiredDependencyException(Exception):
148147PLATFORM_MINGW = os .name == "nt" and "GCC" in sys .version
149148
150149
151- def _dbg (s : str , tp : Any = None ) -> None :
150+ def _dbg (s : str , tp : str | tuple [ str , ...] | None = None ) -> None :
152151 if DEBUG :
153152 if tp :
154153 print (s % tp )
@@ -732,7 +731,7 @@ def build_extensions(self) -> None:
732731 best_path = os .path .join (directory , name )
733732 _dbg (
734733 "Best openjpeg version %s so far in %s" ,
735- (best_version , best_path ),
734+ (str ( best_version ) , best_path ),
736735 )
737736
738737 if best_version and _find_library_file (self , "openjp2" ):
You can’t perform that action at this time.
0 commit comments