Skip to content

Commit 349f8bb

Browse files
spaceonemistotebe
authored andcommitted
chore: replace ignore[no-untyped-def] anotations with Any
otherwise mypy's `stubgen´ will drop the comments causing: > Function is missing a type annotation for one or more parameters [no-untyped-def]
1 parent 3292a4d commit 349f8bb

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎Lib/ldap/controls/openldap.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pyasn1.type import univ
1414
from pyasn1.codec.ber import decoder
1515

16-
from typing import TYPE_CHECKING
16+
from typing import Any, TYPE_CHECKING
1717

1818
if 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)

‎Lib/ldap/resiter.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

‎Lib/ldap/syncrepl.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)