File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ def __init__(
41
41
self .allow_anonymous_binds = allow_anonymous_binds
42
42
43
43
def __repr__ (self : Self ) -> str :
44
+ """Generate string representation of OAuthLDAPServerFactory.
45
+
46
+ Returns:
47
+ A string representation of OAuthLDAPServerFactory.
48
+ """
44
49
return f"{ self .__class__ .__name__ } using adaptor { self .adaptor } "
45
50
46
51
def buildProtocol (self : Self , addr : IAddress ) -> Protocol : # noqa: N802
Original file line number Diff line number Diff line change @@ -73,6 +73,11 @@ def root(self: Self) -> OAuthLDAPEntry:
73
73
return self .root_
74
74
75
75
def __repr__ (self : Self ) -> str :
76
+ """Generate string representation of OAuthLDAPTree.
77
+
78
+ Returns:
79
+ A string representation of OAuthLDAPTree.
80
+ """
76
81
return f"{ self .__class__ .__name__ } with backend { self .oauth_client .__class__ .__name__ } " # noqa: E501
77
82
78
83
def lookup (self : Self , dn : DistinguishedName | str ) -> defer .Deferred [ILDAPEntry ]:
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ select = ["ALL"]
83
83
ignore = [
84
84
" D100" , # missing-docstring-in-module
85
85
" D104" , # missing-docstring-in-package
86
- " D105" , # missing-docstring-in-magic-method
87
86
" D203" , # one-blank-line-before-class (due to conflict with D211)
88
87
" D213" , # multi-line-summary-second-line (due to conflict with D212)
89
88
" D413" , # missing-blank-line-after-last-section
You can’t perform that action at this time.
0 commit comments