Skip to content

Commit 9fa17b8

Browse files
committed
Fix type errors
1 parent f6d4183 commit 9fa17b8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ts_utils/stubs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __str__(self) -> str:
2121
def module_name(self) -> str:
2222
return ".".join(self.module_parts)
2323

24-
@property
24+
@cached_property
2525
def module_parts(self) -> tuple[str, ...]:
2626
raise NotImplementedError
2727

tests/mypy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def distribution_files(distribution: str, args: TestConfig, seen_dists: set[str]
234234
seen_dists.add(distribution)
235235
seen_dists.update(r.name for r in typeshed_reqs)
236236

237-
stubs = []
237+
stubs: list[Path] = []
238238
for stub in third_party_stubs(distribution):
239239
if match(stub, args):
240240
stubs.append(stub.path)

0 commit comments

Comments
 (0)