Skip to content

Commit 6a4f5da

Browse files
committed
refactor(ide): add noinspect comments
Signed-off-by: Stephen Whitlock <s.whitlock@live.com>
1 parent b6383e9 commit 6a4f5da

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docsig/_checker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def _normalize_params(source: _Params, target: _Params) -> None:
166166
# line up and later checks do not emit redundant errors
167167
for count, arg in enumerate(source):
168168
try:
169+
# noinspection PyUnresolvedReferences
169170
is_equal = _almost_equal(
170171
str(arg.name),
171172
str(target[count].name),
@@ -300,6 +301,7 @@ def _iscapitalized(description: str) -> bool:
300301
# every sentence must start with an uppercase letter, unless it
301302
# starts with something other than a letter or an abbreviation
302303
# such as e.g.
304+
# noinspection PyUnboundLocalVariable
303305
return all(
304306
stripped[0].isupper()
305307
for i in _sentence_tokenizer(description)

docsig/_stub.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#: are preferred; derived from napoleon itself rather than hand-listed,
6060
#: because a hand-listed subset silently stops docstrings it does not
6161
#: recognise from ever reaching napoleon, hiding their params
62+
# noinspection PyProtectedMember
6263
_SECTION_NAMES = "|".join(
6364
_re.escape(name)
6465
for name in sorted(

0 commit comments

Comments
 (0)