mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[ldap3] Add missing stubs (#14271)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
ldap3.utils.ordDict # file is available only in Python 2.6
|
||||
@@ -1,10 +1,8 @@
|
||||
version = "2.9.*"
|
||||
upstream_repository = "https://github.com/cannatag/ldap3"
|
||||
requires = ["types-pyasn1"]
|
||||
partial_stub = true
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = true
|
||||
apt_dependencies = ["libkrb5-dev"]
|
||||
# No need to install on the CI. Leaving here as information for MacOs/Windows contributors.
|
||||
# brew_dependencies = ["krb5"]
|
||||
|
||||
@@ -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