diff --git a/stdlib/mimetypes.pyi b/stdlib/mimetypes.pyi index 128a05fa5..532cc5e3c 100644 --- a/stdlib/mimetypes.pyi +++ b/stdlib/mimetypes.pyi @@ -53,5 +53,4 @@ class MimeTypes: def guess_all_extensions(self, type: str, strict: bool = True) -> list[str]: ... def read(self, filename: str, strict: bool = True) -> None: ... def readfp(self, fp: IO[str], strict: bool = True) -> None: ... - if sys.platform == "win32": - def read_windows_registry(self, strict: bool = True) -> None: ... + def read_windows_registry(self, strict: bool = True) -> None: ... diff --git a/tests/stubtest_allowlists/darwin.txt b/tests/stubtest_allowlists/darwin.txt index d3f64a642..b7a297117 100644 --- a/tests/stubtest_allowlists/darwin.txt +++ b/tests/stubtest_allowlists/darwin.txt @@ -29,8 +29,6 @@ select.POLLMSG # system dependent (termios.[A-Z0-9_]+)? # Exists at runtime, but missing from stubs -mimetypes.MimeTypes.read_windows_registry - _ctypes.dlclose _ctypes.dlopen _ctypes.dlsym diff --git a/tests/stubtest_allowlists/linux.txt b/tests/stubtest_allowlists/linux.txt index 930d4ed0f..316d9265f 100644 --- a/tests/stubtest_allowlists/linux.txt +++ b/tests/stubtest_allowlists/linux.txt @@ -14,7 +14,6 @@ signal.SIGINFO socket.[A-Z0-9_]+ # Exists at runtime, but missing from stubs -mimetypes.MimeTypes.read_windows_registry spwd.struct_spwd.sp_nam spwd.struct_spwd.sp_pwd