Skip to content

Commit ecd9144

Browse files
committed
refactor: remove old noinspection comments from PyCharm
1 parent a6092ef commit ecd9144

File tree

13 files changed

+0
-22
lines changed

13 files changed

+0
-22
lines changed

cloudbot/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ async def async_main():
3434
# define closure for signal handling
3535
# The handler is called with two arguments: the signal number and the current stack frame
3636
# These parameters should NOT be removed
37-
# noinspection PyUnusedLocal
3837
def exit_gracefully(signum, frame):
3938
nonlocal stopped_while_restarting
4039
if not _bot:

cloudbot/event.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ def ctcp(self, message, ctcp_type, target=None):
294294
if not hasattr(self.conn, "ctcp"):
295295
raise ValueError("CTCP can only be used on IRC connections")
296296

297-
# noinspection PyUnresolvedReferences
298297
self.conn.ctcp(target, ctcp_type, message)
299298

300299
def notice(self, message, target=None):

cloudbot/util/http.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def open_request(
134134
return opener.open(request)
135135

136136

137-
# noinspection PyShadowingBuiltins
138137
def open(
139138
url,
140139
query_params=None,

plugins/core/core_sieve.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def task_clear():
2020
del buckets[uid]
2121

2222

23-
# noinspection PyUnusedLocal
2423
@hook.sieve()
2524
def check_acls(bot: CloudBot, event: Event, _hook: Hook) -> Optional[Event]:
2625
"""
@@ -50,7 +49,6 @@ def check_acls(bot: CloudBot, event: Event, _hook: Hook) -> Optional[Event]:
5049
return event
5150

5251

53-
# noinspection PyUnusedLocal
5452
@hook.sieve()
5553
async def perm_sieve(
5654
bot: CloudBot, event: Event, _hook: Hook
@@ -71,7 +69,6 @@ async def perm_sieve(
7169
return event
7270

7371

74-
# noinspection PyUnusedLocal
7572
@hook.sieve()
7673
def check_disabled(
7774
bot: CloudBot, event: CommandEvent, _hook: Hook
@@ -88,7 +85,6 @@ def check_disabled(
8885
return event
8986

9087

91-
# noinspection PyUnusedLocal
9288
@hook.sieve()
9389
def rate_limit(bot: CloudBot, event: Event, _hook: Hook) -> Optional[Event]:
9490
"""

plugins/core/ignore.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def is_ignored(conn, chan, mask):
106106
return False
107107

108108

109-
# noinspection PyUnusedLocal
110109
@hook.sieve(priority=50)
111110
async def ignore_sieve(bot, event, _hook):
112111
# don't block event hooks

plugins/core/optout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ def load_cache(db):
187187
optout_cache.update(new_cache)
188188

189189

190-
# noinspection PyUnusedLocal
191190
@hook.sieve(priority=Priority.HIGHEST)
192191
def optout_sieve(bot, event, _hook):
193192
if not event.chan or not event.conn:

plugins/cryptocurrency.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def __new__(cls, name, bases, members):
105105

106106

107107
class Schema(metaclass=SchemaMeta):
108-
# noinspection PyUnusedName
109108
_abstract = True
110109
_fields = ()
111110

@@ -149,7 +148,6 @@ def __init__(self, status: ResponseStatus, data: Any = None):
149148

150149

151150
class Platform(Schema):
152-
# noinspection PyShadowingBuiltins
153151
def __init__(
154152
self, id: int, name: str, symbol: str, slug: str, token_address: str
155153
):
@@ -193,7 +191,6 @@ def __init__(
193191

194192

195193
class CryptoCurrency(Schema):
196-
# noinspection PyShadowingBuiltins
197194
def __init__(
198195
self,
199196
id: int,
@@ -237,7 +234,6 @@ def __init__(self, data: Dict[str, CryptoCurrency], status: ResponseStatus):
237234

238235

239236
class FiatCurrency(Schema):
240-
# noinspection PyShadowingBuiltins
241237
def __init__(self, id: int, name: str, sign: str, symbol: str):
242238
super().__init__()
243239
self.id = id
@@ -257,7 +253,6 @@ def __init__(self, data: List[FiatCurrency], status: ResponseStatus):
257253

258254

259255
class CryptoCurrencyEntry(Schema):
260-
# noinspection PyShadowingBuiltins
261256
def __init__(
262257
self,
263258
id: int,

plugins/gnomeagainsthumanity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def CAHblackcard(text):
2626
"""<text> - Submit text with _ for the bot to fill in the rest. You can submit text with multiple _"""
2727
CardText = text.strip()
2828

29-
# noinspection PyUnusedLocal
3029
def blankfiller(matchobj):
3130
return random.choice(gnomecards["white"])
3231

plugins/profiling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def pympler_diff():
127127
if os.name == "posix":
128128
# The handler is called with two arguments: the signal number and the current stack frame
129129
# These parameters should NOT be removed
130-
# noinspection PyUnusedLocal
131130
def debug(sig, frame):
132131
print(get_thread_dump())
133132

tests/core_tests/irc_client_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ async def test_exc(self, caplog_bot, event_loop):
461461
client = await self.make_client(event_loop)
462462
runs = 0
463463

464-
# noinspection PyUnusedLocal
465464
async def connect(timeout):
466465
nonlocal runs
467466
if runs == 5:
@@ -524,7 +523,6 @@ async def test_timeout_exc(self, caplog_bot, event_loop):
524523
client = await self.make_client(event_loop)
525524
runs = 0
526525

527-
# noinspection PyUnusedLocal
528526
async def connect(timeout):
529527
nonlocal runs
530528
if runs == 5:

0 commit comments

Comments
 (0)