Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
main-windows:
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["py39"]'
env: '["py310"]'
os: windows-latest
main-linux:
uses: asottile/workflows/.github/workflows/tox.yml@v1.8.1
with:
env: '["py39", "py310", "py311", "py312", "py313", "py314"]'
env: '["py310", "py311", "py312", "py313", "py314"]'
os: ubuntu-latest
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py39-plus]
args: [--py310-plus]
- repo: https://github.com/asottile/add-trailing-comma
rev: v4.0.0
hooks:
Expand All @@ -19,4 +19,4 @@ repos:
rev: v3.21.0
hooks:
- id: pyupgrade
args: [--py39-plus]
args: [--py310-plus]
16 changes: 8 additions & 8 deletions clean_dotenv/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ class Original(NamedTuple):


class Binding(NamedTuple):
multiline_whitespace: Optional[str]
export: Optional[str]
key: Optional[str]
value: Optional[str]
separator: Optional[str]
multiline_whitespace: str | None
export: str | None
key: str | None
value: str | None
separator: str | None
original: Original
comment: Optional[str]
end_of_line: Optional[str]
comment: str | None
end_of_line: str | None
error: bool


Expand Down Expand Up @@ -136,7 +136,7 @@ def decode_match(match: Match[str]) -> str:
return regex.sub(decode_match, string)


def parse_key(reader: Reader) -> Optional[str]:
def parse_key(reader: Reader) -> str | None:
char = reader.peek(1)
if char == '#':
return None
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ classifiers =

[options]
packages = find:
python_requires = >=3.9
python_requires = >=3.10

[options.packages.find]
exclude =
Expand Down