Add strict mode to pyright (#315)
* Add strict mode to pyright * Apply UP rule * fix readme * More correct * Leave wrong Context for now * Add strict mode to pyright * Apply UP rule * fix readme * fix * ignore
This commit is contained in:
parent
5a54d82459
commit
ae77772ea8
3 changed files with 194 additions and 133 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from typing import AsyncGenerator
|
||||
from collections.abc import AsyncGenerator
|
||||
|
||||
import anyio
|
||||
import pytest
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import multiprocessing
|
||||
import socket
|
||||
import time
|
||||
from typing import AsyncGenerator, Generator
|
||||
from collections.abc import AsyncGenerator, Generator
|
||||
|
||||
import anyio
|
||||
import httpx
|
||||
|
|
@ -139,7 +139,7 @@ def server(server_port: int) -> Generator[None, None, None]:
|
|||
attempt += 1
|
||||
else:
|
||||
raise RuntimeError(
|
||||
"Server failed to start after {} attempts".format(max_attempts)
|
||||
f"Server failed to start after {max_attempts} attempts"
|
||||
)
|
||||
|
||||
yield
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import multiprocessing
|
||||
import socket
|
||||
import time
|
||||
from typing import AsyncGenerator, Generator
|
||||
from collections.abc import AsyncGenerator, Generator
|
||||
|
||||
import anyio
|
||||
import pytest
|
||||
|
|
@ -135,7 +135,7 @@ def server(server_port: int) -> Generator[None, None, None]:
|
|||
attempt += 1
|
||||
else:
|
||||
raise RuntimeError(
|
||||
"Server failed to start after {} attempts".format(max_attempts)
|
||||
f"Server failed to start after {max_attempts} attempts"
|
||||
)
|
||||
|
||||
yield
|
||||
|
|
|
|||
Loading…
Reference in a new issue