Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"stubs/PyMySQL",
"stubs/pyogrio",
"stubs/python-jose",
"stubs/python-ldap",
"stubs/pywin32",
"stubs/PyYAML",
"stubs/reportlab",
Expand Down
7 changes: 7 additions & 0 deletions stubs/python-ldap/METADATA.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version = "3.5.*"
upstream-repository = "https://github.com/python-ldap/python-ldap"
dependencies = ["types-pyasn1"]
partial-stub = true

[tool.stubtest]
apt-dependencies = ["libsasl2-dev"]
27 changes: 27 additions & 0 deletions stubs/python-ldap/ldap/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from _typeshed import Incomplete
from typing import Any

from ldap._ldap import *
from ldap._types import *
from ldap.dn import dn2str as dn2str, explode_dn as explode_dn, explode_rdn as explode_rdn, str2dn as str2dn
from ldap.functions import (
escape_str as escape_str,
get_option as get_option,
initialize as initialize,
set_option as set_option,
strf_secs as strf_secs,
strp_secs as strp_secs,
)
from ldap.ldapobject import NO_UNIQUE_ENTRY as NO_UNIQUE_ENTRY, LDAPBytesWarning as LDAPBytesWarning
from ldap.pkginfo import __version__ as __version__

LIBLDAP_API_INFO: Incomplete
OPT_NAMES_DICT: Incomplete
LDAPLockBaseClass: Incomplete

class LDAPLock:
def __init__(self, lock_class: type[Any] | None = None, desc: str = "") -> None: ...
def acquire(self) -> bool: ...
def release(self) -> None: ...

OPT_DIAGNOSTIC_MESSAGE = OPT_ERROR_STRING

Check failure on line 27 in stubs/python-ldap/ldap/__init__.pyi

View workflow job for this annotation

GitHub Actions / pyright: regression tests (Linux, 3.13)

"OPT_DIAGNOSTIC_MESSAGE" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
Loading
Loading