Skip to content

Commit 659bccb

Browse files
committed
Fix mypy errors
1 parent b90fbc1 commit 659bccb

File tree

2 files changed

+4
-4
lines changed
  • cmake_file_api/kinds

2 files changed

+4
-4
lines changed

cmake_file_api/kinds/codemodel/target/v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ def from_dict(cls, dikt: dict[str, Any], reply_path: Path) -> "CodemodelTargetV2
523523
isGeneratorProvided, install, link, archive, dependencies, sources, sourceGroups, compileGroups)
524524

525525
@classmethod
526-
def from_path(cls, file: Path, reply_path: Path) -> "CodemodelTargetV2":
527-
with file.open() as file:
526+
def from_path(cls, path: Path, reply_path: Path) -> "CodemodelTargetV2":
527+
with path.open() as file:
528528
dikt = json.load(file)
529529
return cls.from_dict(dikt, reply_path)
530530

cmake_file_api/kinds/configureLog/target/v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def from_dict(cls, dikt: dict[str, Any]) -> "CodemodelTargetV2":
497497
isGeneratorProvided, install, link, archive, dependencies, sources, sourceGroups, compileGroups)
498498

499499
@classmethod
500-
def from_path(cls, file: Path) -> "CodemodelTargetV2":
501-
with file.open() as file:
500+
def from_path(cls, path: Path) -> "CodemodelTargetV2":
501+
with path.open() as file:
502502
dikt = json.load(file)
503503
return cls.from_dict(dikt)
504504

0 commit comments

Comments
 (0)