We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2004edc commit 2975b3bCopy full SHA for 2975b3b
mesonpy/__init__.py
@@ -246,7 +246,7 @@ def _validate_name(name: str) -> str:
246
return name
247
248
@classmethod
249
- def from_pyproject(
+ def from_pyproject( # type: ignore[override]
250
cls,
251
data: Mapping[str, Any],
252
project_dir: Path = os.path.curdir,
@@ -367,7 +367,7 @@ def _libs_dir(self) -> str:
367
@property
368
def _license_file(self) -> Optional[pathlib.Path]:
369
license_ = self._metadata.license
370
- if license_:
+ if license_ and isinstance(license_, pyproject_metadata.License):
371
return license_.file
372
return None
373
0 commit comments