mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add initializer for http.cookiejar.Cookie (#2932)
This commit is contained in:
committed by
Sebastian Rittau
parent
ff650d3275
commit
67b42aff6b
@@ -1,4 +1,4 @@
|
||||
from typing import Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload
|
||||
from typing import Dict, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload
|
||||
from http.client import HTTPResponse
|
||||
from urllib.request import Request
|
||||
|
||||
@@ -95,8 +95,17 @@ class Cookie:
|
||||
comment_url: Optional[str]
|
||||
rfc2109: bool
|
||||
port_specified: bool
|
||||
domain: str # undocumented
|
||||
domain_specified: bool
|
||||
domain_initial_dot: bool
|
||||
def __init__(self, version: Optional[int], name: str, value: Optional[str], # undocumented
|
||||
port: Optional[str], port_specified: bool,
|
||||
domain: str, domain_specified: bool, domain_initial_dot: bool,
|
||||
path: str, path_specified: bool,
|
||||
secure: bool, expires: Optional[int], discard: bool,
|
||||
comment: Optional[str], comment_url: Optional[str],
|
||||
rest: Dict[str, str],
|
||||
rfc2109: bool = ...) -> None: ...
|
||||
def has_nonstandard_attr(self, name: str) -> bool: ...
|
||||
@overload
|
||||
def get_nonstandard_attr(self, name: str) -> Optional[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user