Skip to content

Commit 89f12ec

Browse files
committed
Fix typo
1 parent f5efcf0 commit 89f12ec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

mypy/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def __init__(
910910
# Resolved paths for each module in build.
911911
self.path_by_id: dict[str, str] = {}
912912
# Packages for which we know presence or absence of __getattr__().
913-
self.know_partial_packages: dict[str, bool] = {}
913+
self.known_partial_packages: dict[str, bool] = {}
914914

915915
def dump_stats(self) -> None:
916916
if self.options.dump_build_stats:
@@ -3356,8 +3356,8 @@ def in_partial_package(id: str, manager: BuildManager) -> bool:
33563356
"""
33573357
while "." in id:
33583358
ancestor, _ = id.rsplit(".", 1)
3359-
if ancestor in manager.know_partial_packages:
3360-
return manager.know_partial_packages[ancestor]
3359+
if ancestor in manager.known_partial_packages:
3360+
return manager.known_partial_packages[ancestor]
33613361
if ancestor in manager.modules:
33623362
ancestor_mod: MypyFile | None = manager.modules[ancestor]
33633363
else:
@@ -3374,7 +3374,7 @@ def in_partial_package(id: str, manager: BuildManager) -> bool:
33743374
ancestor_st.tree = None
33753375
if ancestor_mod is not None:
33763376
# Bail out soon, complete subpackage found
3377-
manager.know_partial_packages[ancestor] = ancestor_mod.is_partial_stub_package
3377+
manager.known_partial_packages[ancestor] = ancestor_mod.is_partial_stub_package
33783378
return ancestor_mod.is_partial_stub_package
33793379
id = ancestor
33803380
return False

0 commit comments

Comments
 (0)