Skip to content

Commit 4d505f2

Browse files
authored
ci: add py3.13 to test.yml (theskumar#527)
* ci: add py3.13 to test.yml * Improve type hints * fix typo
1 parent 4543837 commit 4d505f2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
os:
1414
- ubuntu-latest
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", pypy3.9, pypy3.10]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", pypy3.9, pypy3.10]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
24+
allow-prereleases: true
2425

2526
- name: Upgrade pip
2627
run: python -m pip install --upgrade pip

src/dotenv/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import shlex
44
import sys
55
from contextlib import contextmanager
6-
from typing import Any, Dict, IO, Iterator, List
6+
from typing import Any, Dict, IO, Iterator, List, Optional
77

88
try:
99
import click
@@ -16,7 +16,7 @@
1616
from .version import __version__
1717

1818

19-
def enumerate_env():
19+
def enumerate_env() -> Optional[str]:
2020
"""
2121
Return a path for the ${pwd}/.env file.
2222

0 commit comments

Comments
 (0)