From b9be1442ba86c62d3473e476d0784e808da4af23 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Mon, 7 Oct 2024 15:21:17 +0100 Subject: [PATCH] Attempt to solve typechecking problems --- setuptools/_shutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setuptools/_shutil.py b/setuptools/_shutil.py index 3d2c11e019..2db65abb63 100644 --- a/setuptools/_shutil.py +++ b/setuptools/_shutil.py @@ -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