Skip to content

Commit a9684a0

Browse files
committed
[python-ldap]: Add 3.5 type stubs
1 parent 5a0bf81 commit a9684a0

44 files changed

Lines changed: 2162 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pyrightconfig.stricter.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"stubs/PyMySQL",
8888
"stubs/pyogrio",
8989
"stubs/python-jose",
90+
"stubs/python-ldap",
9091
"stubs/pywin32",
9192
"stubs/PyYAML",
9293
"stubs/reportlab",

stubs/python-ldap/METADATA.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version = "3.5.*"
2+
upstream-repository = "https://github.com/python-ldap/python-ldap"
3+
dependencies = ["types-pyasn1"]
4+
partial-stub = true
5+
6+
[tool.stubtest]
7+
apt-dependencies = ["libsasl2-dev"]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from _typeshed import Incomplete
2+
from typing import Any
3+
4+
from ldap._ldap import *
5+
from ldap._types import *
6+
from ldap.dn import dn2str as dn2str, explode_dn as explode_dn, explode_rdn as explode_rdn, str2dn as str2dn
7+
from ldap.functions import (
8+
escape_str as escape_str,
9+
get_option as get_option,
10+
initialize as initialize,
11+
set_option as set_option,
12+
strf_secs as strf_secs,
13+
strp_secs as strp_secs,
14+
)
15+
from ldap.ldapobject import NO_UNIQUE_ENTRY as NO_UNIQUE_ENTRY, LDAPBytesWarning as LDAPBytesWarning
16+
from ldap.pkginfo import __version__ as __version__
17+
18+
LIBLDAP_API_INFO: Incomplete
19+
OPT_NAMES_DICT: Incomplete
20+
LDAPLockBaseClass: Incomplete
21+
22+
class LDAPLock:
23+
def __init__(self, lock_class: type[Any] | None = None, desc: str = "") -> None: ...
24+
def acquire(self) -> bool: ...
25+
def release(self) -> None: ...
26+
27+
OPT_DIAGNOSTIC_MESSAGE = OPT_ERROR_STRING

0 commit comments

Comments
 (0)