11import sys
22from _typeshed import StrPath
3- from collections .abc import Sequence
3+ from collections .abc import Iterable
44from typing import IO
55
66__all__ = [
@@ -25,7 +25,7 @@ if sys.version_info >= (3, 13):
2525def guess_type (url : StrPath , strict : bool = True ) -> tuple [str | None , str | None ]: ...
2626def guess_all_extensions (type : str , strict : bool = True ) -> list [str ]: ...
2727def guess_extension (type : str , strict : bool = True ) -> str | None : ...
28- def init (files : Sequence [StrPath ] | None = None ) -> None : ...
28+ def init (files : Iterable [StrPath ] | None = None ) -> None : ...
2929def read_mime_types (file : StrPath ) -> dict [str , str ] | None : ...
3030def add_type (type : str , ext : str , strict : bool = True ) -> None : ...
3131
@@ -44,7 +44,7 @@ class MimeTypes:
4444 encodings_map : dict [str , str ]
4545 types_map : tuple [dict [str , str ], dict [str , str ]]
4646 types_map_inv : tuple [dict [str , str ], dict [str , str ]]
47- def __init__ (self , filenames : tuple [StrPath , ... ] = (), strict : bool = True ) -> None : ...
47+ def __init__ (self , filenames : Iterable [StrPath ] = (), strict : bool = True ) -> None : ...
4848 def add_type (self , type : str , ext : str , strict : bool = True ) -> None : ...
4949 def guess_extension (self , type : str , strict : bool = True ) -> str | None : ...
5050 def guess_type (self , url : StrPath , strict : bool = True ) -> tuple [str | None , str | None ]: ...
0 commit comments