mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use re-exports instead of TypeAliases in email.parser (#7665)
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from collections.abc import Callable
|
||||
from email import _MessageT
|
||||
from email.message import Message
|
||||
from email.policy import Policy
|
||||
from typing import Generic, overload
|
||||
from typing import Generic, TypeVar, overload
|
||||
|
||||
__all__ = ["FeedParser", "BytesFeedParser"]
|
||||
|
||||
_MessageT = TypeVar("_MessageT", bound=Message)
|
||||
|
||||
class FeedParser(Generic[_MessageT]):
|
||||
@overload
|
||||
def __init__(self: FeedParser[Message], _factory: None = ..., *, policy: Policy = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user