Use basedpyright refactor
This commit is contained in:
@@ -8,7 +8,7 @@ Connection = sqlite3.Connection
|
||||
|
||||
|
||||
@contextmanager
|
||||
def get_connection(con: Optional[Connection] = None) -> Iterator[Connection]:
|
||||
def get_connection(con: Connection | None = None) -> Iterator[Connection]:
|
||||
if con:
|
||||
yield con
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user