Skip to content

Commit

Permalink
Attempt to solve typechecking problems
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Nov 11, 2024
1 parent 1678730 commit b9be144
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
from distutils import log

try:
from os import chmod
from os import chmod # pyright: ignore[reportAssignmentType]
# Losing type-safety w/ pyright, but that's ok
except ImportError:
# Jython compatibility
def chmod(*args: object, **kwargs: object) -> None: # type: ignore[misc] # Mypy reuses the imported definition anyway
Expand Down

0 comments on commit b9be144

Please sign in to comment.