Use builtin generics and X | None
Since Python 3.9 and 3.10, `list`, `tuple`, and `X | None` replace `typing.List`, `typing.Tuple`, and `typing.Optional`
This commit is contained in:
parent
aa1a7c796f
commit
c6518f6b39
1 changed files with 21 additions and 26 deletions
|
|
@ -27,8 +27,9 @@ import itertools
|
|||
import os
|
||||
import pathlib
|
||||
import tempfile
|
||||
from collections.abc import Generator
|
||||
from collections.abc import Mapping
|
||||
from typing import Any, Generator
|
||||
from typing import Any
|
||||
|
||||
import nox
|
||||
from nox.sessions import Session
|
||||
|
|
|
|||
Loading…
Reference in a new issue