@@ -796,7 +796,7 @@ def default_lib_path(
796
796
custom_typeshed_dir = os .path .abspath (custom_typeshed_dir )
797
797
typeshed_dir = os .path .join (custom_typeshed_dir , "stdlib" )
798
798
mypy_extensions_dir = os .path .join (custom_typeshed_dir , "stubs" , "mypy-extensions" )
799
- mypy_native_dir = os .path .join (custom_typeshed_dir , "stubs" , "mypy-native " )
799
+ librt_dir = os .path .join (custom_typeshed_dir , "stubs" , "librt " )
800
800
versions_file = os .path .join (typeshed_dir , "VERSIONS" )
801
801
if not os .path .isdir (typeshed_dir ) or not os .path .isfile (versions_file ):
802
802
print (
@@ -812,13 +812,13 @@ def default_lib_path(
812
812
data_dir = auto
813
813
typeshed_dir = os .path .join (data_dir , "typeshed" , "stdlib" )
814
814
mypy_extensions_dir = os .path .join (data_dir , "typeshed" , "stubs" , "mypy-extensions" )
815
- mypy_native_dir = os .path .join (data_dir , "typeshed" , "stubs" , "mypy-native " )
815
+ librt_dir = os .path .join (data_dir , "typeshed" , "stubs" , "librt " )
816
816
path .append (typeshed_dir )
817
817
818
- # Get mypy-extensions and mypy-native stubs from typeshed, since we treat them as
818
+ # Get mypy-extensions and librt stubs from typeshed, since we treat them as
819
819
# "internal" libraries, similar to typing and typing-extensions.
820
820
path .append (mypy_extensions_dir )
821
- path .append (mypy_native_dir )
821
+ path .append (librt_dir )
822
822
823
823
# Add fallback path that can be used if we have a broken installation.
824
824
if sys .platform != "win32" :
0 commit comments