File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313from pyasn1 .type import univ
1414from pyasn1 .codec .ber import decoder
1515
16- from typing import TYPE_CHECKING
16+ from typing import Any , TYPE_CHECKING
1717
1818if TYPE_CHECKING :
1919 _Base = SimpleLDAPObject
@@ -58,7 +58,7 @@ class SearchNoOpMixIn(_Base):
5858 It adds a convenience method noop_search_st() to LDAPObject
5959 for easily using the no-op search control.
6060 """
61- def __init__ (self , * args , ** kwargs ) -> None : # type: ignore[no-untyped-def]
61+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
6262 if not isinstance (self , SimpleLDAPObject ):
6363 raise TypeError (f"Expecting to be a subclass of { SimpleLDAPObject } " )
6464 super ().__init__ (* args , ** kwargs )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class ResultProcessor(_Base):
2323 Mix-in class used with ldap.ldapopbject.LDAPObject or derived classes.
2424 """
2525
26- def __init__ (self , * args , ** kwargs ) -> None : # type: ignore[no-untyped-def]
26+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
2727 if not isinstance (self , LDAPObject ):
2828 raise TypeError (f"Expecting to be a subclass of { LDAPObject } " )
2929 super ().__init__ (* args , ** kwargs )
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ class SyncreplConsumer(_Base):
372372 SyncreplConsumer - LDAP syncrepl consumer object.
373373 """
374374
375- def __init__ (self , * args , ** kwargs ) -> None : # type: ignore[no-untyped-def]
375+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
376376 if not isinstance (self , SimpleLDAPObject ):
377377 raise TypeError (f"Expecting to be a subclass of { SimpleLDAPObject } " )
378378 super ().__init__ (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments