Fix type hints
This commit is contained in:
parent
93f0865b3a
commit
4413aeebd3
|
@ -8,6 +8,7 @@ from typing import Any
|
||||||
from typing import Generator
|
from typing import Generator
|
||||||
from typing import List
|
from typing import List
|
||||||
from typing import Mapping
|
from typing import Mapping
|
||||||
|
from typing import MutableMapping
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from typing import overload
|
from typing import overload
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
|
@ -39,8 +39,8 @@ def check_monkeypatch_typeddict(monkeypatch: MonkeyPatch) -> None:
|
||||||
y: float
|
y: float
|
||||||
|
|
||||||
a: Foo = {"x": 1, "y": 3.14}
|
a: Foo = {"x": 1, "y": 3.14}
|
||||||
monkeypatch.setitem("x", 2)
|
monkeypatch.setitem(a, "x", 2)
|
||||||
monkeypatch.delitem("y")
|
monkeypatch.delitem(a, "y")
|
||||||
|
|
||||||
|
|
||||||
def check_raises_is_a_context_manager(val: bool) -> None:
|
def check_raises_is_a_context_manager(val: bool) -> None:
|
||||||
|
|
Loading…
Reference in New Issue