Skip to content

Commit aed2433

Browse files
fix: fixes mypy complaints about pkgresources (#12790)
1 parent cc3782e commit aed2433

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

metadata-ingestion/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
3-
requires = ["setuptools>=63.0.0", "wheel"]
3+
requires = ["setuptools >= 71.1", "wheel"]
44

55
[tool.ruff.lint.isort]
66
section-order = ["future", "patch", "standard-library", "third-party", "first-party", "local-folder"]

metadata-ingestion/setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@
555555

556556
mypy_stubs = {
557557
"types-dataclasses",
558-
"types-setuptools",
559558
"types-six",
560559
"types-python-dateutil",
561560
# We need to avoid 2.31.0.5 and 2.31.0.4 due to

metadata-ingestion/tests/unit/test_packaging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
)
99
def test_datahub_version():
1010
# Simply importing pkg_resources checks for unsatisfied dependencies.
11-
import pkg_resources
11+
import pkg_resources # type: ignore[import-untyped]
1212

1313
assert pkg_resources.get_distribution(datahub_version.__package_name__).version

0 commit comments

Comments
 (0)