chore: adding extra checks, more scoping (#867)
* chore: adding extra checks, more scoping * Remove 'manual' pre-commit checks from CI Co-authored-by: Joe Rickerby <joerick@mac.com>
This commit is contained in:
co-authored by
Joe Rickerby
parent
bf36398572
commit
f511961b40
@@ -157,18 +157,18 @@ class TestSelector(IdentifierSelector):
|
||||
|
||||
# Taken from https://stackoverflow.com/a/107717
|
||||
class Unbuffered:
|
||||
def __init__(self, stream): # type: ignore
|
||||
def __init__(self, stream): # type: ignore[no-untyped-def]
|
||||
self.stream = stream
|
||||
|
||||
def write(self, data): # type: ignore
|
||||
def write(self, data): # type: ignore[no-untyped-def]
|
||||
self.stream.write(data)
|
||||
self.stream.flush()
|
||||
|
||||
def writelines(self, data): # type: ignore
|
||||
def writelines(self, data): # type: ignore[no-untyped-def]
|
||||
self.stream.writelines(data)
|
||||
self.stream.flush()
|
||||
|
||||
def __getattr__(self, attr): # type: ignore
|
||||
def __getattr__(self, attr): # type: ignore[no-untyped-def]
|
||||
return getattr(self.stream, attr)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user