Skip to content
Merged
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
10 changes: 5 additions & 5 deletions stubs/ldap3/ldap3/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Literal
from typing import Literal

from .abstract.attrDef import AttrDef as AttrDef
from .abstract.attribute import (
Expand Down Expand Up @@ -97,7 +97,7 @@ HASHED_SALTED_SHA384: Literal["SALTED_SHA384"]
HASHED_SALTED_SHA512: Literal["SALTED_SHA512"]
HASHED_SALTED_MD5: Literal["SALTED_MD5"]

NUMERIC_TYPES: tuple[type[Any], ...]
INTEGER_TYPES: tuple[type[Any], ...]
STRING_TYPES: tuple[type[Any], ...]
SEQUENCE_TYPES: tuple[type[Any], ...]
NUMERIC_TYPES: tuple[type, ...]
INTEGER_TYPES: tuple[type, ...]
STRING_TYPES: tuple[type, ...]
SEQUENCE_TYPES: tuple[type, ...]
6 changes: 3 additions & 3 deletions stubs/ldap3/ldap3/abstract/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any
from _typeshed import Incomplete

STATUS_INIT: str
STATUS_VIRTUAL: str
Expand All @@ -11,5 +11,5 @@ STATUS_READY_FOR_DELETION: str
STATUS_READY_FOR_MOVING: str
STATUS_READY_FOR_RENAMING: str
STATUS_DELETED: str
STATUSES: Any
INITIAL_STATUSES: Any
STATUSES: Incomplete
INITIAL_STATUSES: Incomplete
26 changes: 13 additions & 13 deletions stubs/ldap3/ldap3/abstract/attrDef.pyi
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from typing import Any
from _typeshed import Incomplete

class AttrDef:
name: Any
key: Any
validate: Any
pre_query: Any
post_query: Any
default: Any
dereference_dn: Any
description: Any
mandatory: Any
single_value: Any
oid_info: Any
other_names: Any
name: Incomplete
key: Incomplete
validate: Incomplete
pre_query: Incomplete
post_query: Incomplete
default: Incomplete
dereference_dn: Incomplete
description: Incomplete
mandatory: Incomplete
single_value: Incomplete
oid_info: Incomplete
other_names: Incomplete
def __init__(
self,
name,
Expand Down
18 changes: 9 additions & 9 deletions stubs/ldap3/ldap3/abstract/attribute.pyi
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from typing import Any
from _typeshed import Incomplete

class Attribute:
key: Any
definition: Any
values: Any
raw_values: Any
response: Any
entry: Any
cursor: Any
other_names: Any
key: Incomplete
definition: Incomplete
values: Incomplete
raw_values: Incomplete
response: Incomplete
entry: Incomplete
cursor: Incomplete
other_names: Incomplete
def __init__(self, attr_def, entry, cursor) -> None: ...
def __len__(self) -> int: ...
def __iter__(self): ...
Expand Down
55 changes: 28 additions & 27 deletions stubs/ldap3/ldap3/abstract/cursor.pyi
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
from typing import Any, NamedTuple
from _typeshed import Incomplete
from typing import NamedTuple

class Operation(NamedTuple):
request: Any
result: Any
response: Any
request: Incomplete
result: Incomplete
response: Incomplete

class Cursor:
connection: Any
get_operational_attributes: Any
definition: Any
attributes: Any
controls: Any
execution_time: Any
entries: Any
schema: Any
connection: Incomplete
get_operational_attributes: Incomplete
definition: Incomplete
attributes: Incomplete
controls: Incomplete
execution_time: Incomplete
entries: Incomplete
schema: Incomplete
def __init__(
self,
connection,
Expand All @@ -38,14 +39,14 @@ class Cursor:
def failed(self): ...

class Reader(Cursor):
entry_class: Any
attribute_class: Any
entry_initial_status: Any
sub_tree: Any
base: Any
dereference_aliases: Any
validated_query: Any
query_filter: Any
entry_class: Incomplete
attribute_class: Incomplete
entry_initial_status: Incomplete
sub_tree: Incomplete
base: Incomplete
dereference_aliases: Incomplete
validated_query: Incomplete
query_filter: Incomplete
def __init__(
self,
connection,
Expand All @@ -68,8 +69,8 @@ class Reader(Cursor):
@components_in_and.setter
def components_in_and(self, value) -> None: ...
def clear(self) -> None: ...
execution_time: Any
entries: Any
execution_time: Incomplete
entries: Incomplete
def reset(self) -> None: ...
def search(self, attributes=None): ...
def search_object(self, entry_dn=None, attributes=None): ...
Expand All @@ -78,14 +79,14 @@ class Reader(Cursor):
def search_paged(self, paged_size, paged_criticality: bool = True, generator: bool = True, attributes=None): ...

class Writer(Cursor):
entry_class: Any
attribute_class: Any
entry_initial_status: Any
entry_class: Incomplete
attribute_class: Incomplete
entry_initial_status: Incomplete
@staticmethod
def from_cursor(cursor, connection=None, object_def=None, custom_validator=None): ...
@staticmethod
def from_response(connection, object_def, response=None): ...
dereference_aliases: Any
dereference_aliases: Incomplete
def __init__(
self,
connection,
Expand All @@ -95,7 +96,7 @@ class Writer(Cursor):
controls=None,
auxiliary_class=None,
) -> None: ...
execution_time: Any
execution_time: Incomplete
def commit(self, refresh: bool = True): ...
def discard(self) -> None: ...
def new(self, dn): ...
Expand Down
22 changes: 11 additions & 11 deletions stubs/ldap3/ldap3/abstract/entry.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from typing import Any
from _typeshed import Incomplete

class EntryState:
dn: Any
status: Any
attributes: Any
raw_attributes: Any
response: Any
cursor: Any
origin: Any
read_time: Any
changes: Any
definition: Any
dn: Incomplete
status: Incomplete
attributes: Incomplete
raw_attributes: Incomplete
response: Incomplete
cursor: Incomplete
origin: Incomplete
read_time: Incomplete
changes: Incomplete
definition: Incomplete
def __init__(self, dn, cursor) -> None: ...
def set_status(self, status) -> None: ...
@property
Expand Down
16 changes: 8 additions & 8 deletions stubs/ldap3/ldap3/core/exceptions.pyi
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import socket
from typing import Any
from _typeshed import Incomplete
from typing_extensions import Self

class LDAPException(Exception): ...

class LDAPOperationResult(LDAPException):
def __new__(cls, result=None, description=None, dn=None, message=None, response_type=None, response=None) -> Self: ...
result: Any
description: Any
dn: Any
message: Any
type: Any
response: Any
result: Incomplete
description: Incomplete
dn: Incomplete
message: Incomplete
type: Incomplete
response: Incomplete
def __init__(self, result=None, description=None, dn=None, message=None, response_type=None, response=None) -> None: ...

class LDAPOperationsErrorResult(LDAPOperationResult): ...
Expand Down Expand Up @@ -63,7 +63,7 @@ class LDAPAssertionFailedResult(LDAPOperationResult): ...
class LDAPAuthorizationDeniedResult(LDAPOperationResult): ...
class LDAPESyncRefreshRequiredResult(LDAPOperationResult): ...

exception_table: Any
exception_table: Incomplete

class LDAPExceptionError(LDAPException): ...
class LDAPConfigurationError(LDAPExceptionError): ...
Expand Down
30 changes: 15 additions & 15 deletions stubs/ldap3/ldap3/core/pooling.pyi
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
from typing import Any
from _typeshed import Incomplete

POOLING_STRATEGIES: Any
POOLING_STRATEGIES: Incomplete

class ServerState:
server: Any
last_checked_time: Any
available: Any
server: Incomplete
last_checked_time: Incomplete
available: Incomplete
def __init__(self, server, last_checked_time, available) -> None: ...

class ServerPoolState:
server_states: Any
strategy: Any
server_pool: Any
server_states: Incomplete
strategy: Incomplete
server_pool: Incomplete
last_used_server: int
initialize_time: Any
initialize_time: Incomplete
def __init__(self, server_pool) -> None: ...
def refresh(self) -> None: ...
def get_current_server(self): ...
Expand All @@ -23,12 +23,12 @@ class ServerPoolState:
def __len__(self) -> int: ...

class ServerPool:
servers: Any
pool_states: Any
active: Any
exhaust: Any
single: Any
strategy: Any
servers: Incomplete
pool_states: Incomplete
active: Incomplete
exhaust: Incomplete
single: Incomplete
strategy: Incomplete
def __init__(
self, servers=None, pool_strategy="ROUND_ROBIN", active: bool = True, exhaust: bool = False, single_state: bool = True
) -> None: ...
Expand Down
14 changes: 7 additions & 7 deletions stubs/ldap3/ldap3/core/rdns.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Any
from _typeshed import Incomplete

class ReverseDnsSetting:
OFF: Any
REQUIRE_RESOLVE_ALL_ADDRESSES: Any
REQUIRE_RESOLVE_IP_ADDRESSES_ONLY: Any
OPTIONAL_RESOLVE_ALL_ADDRESSES: Any
OPTIONAL_RESOLVE_IP_ADDRESSES_ONLY: Any
SUPPORTED_VALUES: Any
OFF: Incomplete
REQUIRE_RESOLVE_ALL_ADDRESSES: Incomplete
REQUIRE_RESOLVE_IP_ADDRESSES_ONLY: Incomplete
OPTIONAL_RESOLVE_ALL_ADDRESSES: Incomplete
OPTIONAL_RESOLVE_IP_ADDRESSES_ONLY: Incomplete
SUPPORTED_VALUES: Incomplete

def get_hostname_by_addr(addr, success_required: bool = True): ...
def is_ip_addr(addr): ...
6 changes: 3 additions & 3 deletions stubs/ldap3/ldap3/core/results.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any
from _typeshed import Incomplete

RESULT_SUCCESS: int
RESULT_OPERATIONS_ERROR: int
Expand Down Expand Up @@ -52,5 +52,5 @@ RESULT_CANNOT_CANCEL: int
RESULT_ASSERTION_FAILED: int
RESULT_AUTHORIZATION_DENIED: int
RESULT_E_SYNC_REFRESH_REQUIRED: int
RESULT_CODES: Any
DO_NOT_RAISE_EXCEPTIONS: Any
RESULT_CODES: Incomplete
DO_NOT_RAISE_EXCEPTIONS: Incomplete
29 changes: 15 additions & 14 deletions stubs/ldap3/ldap3/core/server.pyi
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
from typing import Any, Literal
from _typeshed import Incomplete
from typing import Literal

unix_socket_available: bool

class Server:
ipc: bool
host: Any
port: Any
allowed_referral_hosts: Any
ssl: Any
tls: Any
name: Any
get_info: Any
dit_lock: Any
custom_formatter: Any
custom_validator: Any
current_address: Any
connect_timeout: Any
mode: Any
host: Incomplete
port: Incomplete
allowed_referral_hosts: Incomplete
ssl: Incomplete
tls: Incomplete
name: Incomplete
get_info: Incomplete
dit_lock: Incomplete
custom_formatter: Incomplete
custom_validator: Incomplete
current_address: Incomplete
connect_timeout: Incomplete
mode: Incomplete
def __init__(
self,
host: str,
Expand Down
6 changes: 3 additions & 3 deletions stubs/ldap3/ldap3/core/timezone.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from _typeshed import Incomplete
from datetime import tzinfo
from typing import Any

class OffsetTzInfo(tzinfo):
offset: Any
name: Any
offset: Incomplete
name: Incomplete
def __init__(self, offset, name) -> None: ...
def utcoffset(self, dt): ...
def tzname(self, dt): ...
Expand Down
Loading