[ldap3] Add missing stubs (#14271)

This commit is contained in:
Semyon Moroz
2025-06-21 17:55:26 +00:00
committed by GitHub
parent 41b117af68
commit 0f89c82b62
4 changed files with 14 additions and 5 deletions
@@ -0,0 +1 @@
ldap3.utils.ordDict # file is available only in Python 2.6
-2
View File
@@ -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
View File
@@ -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
+9 -3
View File
@@ -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]