Added ignore statements for Windows specific typing issues (#6516)

This commit is contained in:
Rohitkr117 2024-10-30 00:00:32 +05:30 committed by GitHub
parent 65ecd5d528
commit 12b087b0f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ class StackTraceDump:
def __init__(self, crawler: Crawler):
self.crawler: Crawler = crawler
try:
signal.signal(signal.SIGUSR2, self.dump_stacktrace)
signal.signal(signal.SIGQUIT, self.dump_stacktrace)
signal.signal(signal.SIGUSR2, self.dump_stacktrace) # type: ignore[attr-defined]
signal.signal(signal.SIGQUIT, self.dump_stacktrace) # type: ignore[attr-defined]
except AttributeError:
# win32 platforms don't support SIGUSR signals
pass
@ -70,7 +70,7 @@ class StackTraceDump:
class Debugger:
def __init__(self) -> None:
try:
signal.signal(signal.SIGUSR2, self._enter_debugger)
signal.signal(signal.SIGUSR2, self._enter_debugger) # type: ignore[attr-defined]
except AttributeError:
# win32 platforms don't support SIGUSR signals
pass

View File

@ -82,7 +82,7 @@ def _embed_standard_shell(
else:
import rlcompleter # noqa: F401
readline.parse_and_bind("tab:complete")
readline.parse_and_bind("tab:complete") # type: ignore[attr-defined]
@wraps(_embed_standard_shell)
def wrapper(namespace: dict[str, Any] = namespace, banner: str = "") -> None: