= ...
    ) -> None: ...
    @overload
    def warn(message: Warning, category: Any = ..., stacklevel: int = ..., source: Optional[Any] = ...) -> None: ...
    @overload
    def warn_explicit(
        message: str,
        category: Type[Warning],
        filename: str,
        lineno: int,
        module: Optional[str] = ...,
        registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
        module_globals: Optional[Dict[str, Any]] = ...,
        source: Optional[Any] = ...,
    ) -> None: ...
    @overload
    def warn_explicit(
        message: Warning,
        category: Any,
        filename: str,
        lineno: int,
        module: Optional[str] = ...,
        registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
        module_globals: Optional[Dict[str, Any]] = ...,
        source: Optional[Any] = ...,
    ) -> None: ...

else:
    @overload
    def warn(message: str, category: Optional[Type[Warning]] = ..., stacklevel: int = ...) -> None: ...
    @overload
    def warn(message: Warning, category: Any = ..., stacklevel: int = ...) -> None: ...
    @overload
    def warn_explicit(
        message: str,
        category: Type[Warning],
        filename: str,
        lineno: int,
        module: Optional[str] = ...,
        registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
        module_globals: Optional[Dict[str, Any]] = ...,
    ) -> None: ...
    @overload
    def warn_explicit(
        message: Warning,
        category: Any,
        filename: str,
        lineno: int,
        module: Optional[str] = ...,
        registry: Optional[Dict[Union[str, Tuple[str, Type[Warning], int]], int]] = ...,
        module_globals: Optional[Dict[str, Any]] = ...,
    ) -> None: ...
PK