Skip to content

Commit

Permalink
Pyupgrades for 3.9-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
jlubken committed Feb 3, 2023
1 parent a359579 commit 10bb0bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cfgenvy/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

from __future__ import annotations

from collections.abc import Mapping
from logging import getLogger
from os import environ as osenviron
from re import Pattern
from re import compile as re_compile
from typing import Mapping, Pattern

from .yaml import yaml_implicit_type

Expand Down
3 changes: 2 additions & 1 deletion src/cfgenvy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
from __future__ import annotations

from argparse import ArgumentParser
from collections.abc import Mapping, Sequence
from logging import getLogger
from os import environ as osenviron
from sys import argv as sysargv
from typing import IO, Any, Mapping, Sequence
from typing import IO, Any

from .env import Env
from .yaml import yaml_loads
Expand Down
3 changes: 2 additions & 1 deletion src/cfgenvy/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from __future__ import annotations

from logging import getLogger
from typing import Any, Callable, Pattern
from re import Pattern
from typing import Any, Callable

from yaml import dump as _yaml_dumps
from yaml import load as _yaml_loads
Expand Down

0 comments on commit 10bb0bc

Please sign in to comment.