mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-19 20:27:05 +08:00
[ldap3] Add missing stubs (#14271)
This commit is contained in:
1 parent
41b117af68
commit
0f89c82b62
4 files changed
+14
-5
No files matched your search
@@ -4,6 +4,7 @@ from typing import Any, Final, TypeVar, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from pyasn1.codec.ber.encoder import AbstractItemEncoder
|
||||
from pyasn1.type.tag import TagSet
|
||||
|
||||
# Use _typeshed._SupportsGetItemBuffer after PEP 688
|
||||
_SupportsGetItemBuffer: TypeAlias = SliceableBuffer | IndexableBuffer
|
||||
@@ -19,6 +20,9 @@ class LDAPBooleanEncoder(AbstractItemEncoder):
|
||||
# Requires pyasn1 > 0.3.7
|
||||
def encodeValue(self, value: bool | int, asn1Spec: Unused, encodeFun: Unused, **options: Unused): ...
|
||||
|
||||
customTagMap: dict[TagSet, AbstractItemEncoder]
|
||||
customTypeMap: dict[int, AbstractItemEncoder]
|
||||
|
||||
def compute_ber_size(data): ...
|
||||
def decode_message_fast(message): ...
|
||||
@overload
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
__url__: str
|
||||
__description__: str
|
||||
__status__: str
|
||||
from typing import Final
|
||||
|
||||
__version__: Final[str]
|
||||
__author__: Final[str]
|
||||
__email__: Final[str]
|
||||
__url__: Final[str]
|
||||
__description__: Final[str]
|
||||
__status__: Final[str]
|
||||
__license__: Final[str]
|
||||
Reference in new issue
Block a user