Skip to content

Commit 79c6826

Browse files
committed
Add mypy ignores for attributes not available on Py3.9.
1 parent 0a00b77 commit 79c6826

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mesonpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def __init__(
720720
self._meson_cross_file.write_text(cross_file_data, encoding='utf-8')
721721
self._meson_args['setup'].extend(('--cross-file', os.fspath(self._meson_cross_file)))
722722
elif sysconfig.get_platform().startswith('ios-'):
723-
ios_ver = platform.ios_ver()
723+
ios_ver = platform.ios_ver() # type: ignore[attr-defined]
724724

725725
arch = platform.machine()
726726
family = 'aarch64' if arch == 'arm64' else arch

mesonpy/_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _get_ios_platform_tag() -> str:
166166
try:
167167
version = tuple(map(int, os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', '').split('.')))[:2]
168168
except ValueError:
169-
version = tuple(map(int, platform.ios_ver().release.split('.')))[:2]
169+
version = tuple(map(int, platform.ios_ver().release.split('.')))[:2] # type: ignore[attr-defined]
170170

171171
# Although _multiarch is an internal implementation detail, it's a core part
172172
# of how CPython is implemented on iOS; this attribute is also relied upon

0 commit comments

Comments
 (0)