@@ -796,7 +796,7 @@ def default_lib_path(
796796 custom_typeshed_dir = os .path .abspath (custom_typeshed_dir )
797797 typeshed_dir = os .path .join (custom_typeshed_dir , "stdlib" )
798798 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 " )
800800 versions_file = os .path .join (typeshed_dir , "VERSIONS" )
801801 if not os .path .isdir (typeshed_dir ) or not os .path .isfile (versions_file ):
802802 print (
@@ -812,13 +812,13 @@ def default_lib_path(
812812 data_dir = auto
813813 typeshed_dir = os .path .join (data_dir , "typeshed" , "stdlib" )
814814 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 " )
816816 path .append (typeshed_dir )
817817
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
819819 # "internal" libraries, similar to typing and typing-extensions.
820820 path .append (mypy_extensions_dir )
821- path .append (mypy_native_dir )
821+ path .append (librt_dir )
822822
823823 # Add fallback path that can be used if we have a broken installation.
824824 if sys .platform != "win32" :
0 commit comments