Skip to content

Commit c38eb34

Browse files
authored
Test on Python 3.14 (#90)
* Ignore stubtest warnings about missing `__conditional_annotations__` I haven't been able to find a lot of information on this attribute. But it seems like something that should not be included in stub files. * Ignore unused __conditional_annotations__ rule pre Python 3.14 Pre 3.14 this rule will never match which causes stubtest to complain. From the stubtest docs [1]: > Note if an allowlist entry is a regex that matches the empty string, > stubtest will never consider it unused. For example, to get > –ignore-unused-allowlist behaviour for a single allowlist entry like > foo.bar you could add an allowlist entry (foo\.bar)?. This can be > useful when an error only occurs on a specific platform. [1] https://mypy.readthedocs.io/en/stable/stubtest.html * Only check Python 3.13 on Linux
1 parent babbbad commit c38eb34

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ jobs:
5050
- { short: linux, name: ubuntu-latest }
5151
- { short: win, name: windows-latest }
5252
- { short: macos, name: macos-latest }
53-
python-version: ["3.12", "3.13"]
53+
python-version: ["3.12", "3.14"]
54+
include:
55+
- runs-on: { short: linux, name: ubuntu-latest }
56+
python-version: "3.13"
5457

5558
steps:
5659
- uses: actions/checkout@v5

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3 :: Only",
2828
"Programming Language :: Python :: 3.12",
2929
"Programming Language :: Python :: 3.13",
30+
"Programming Language :: Python :: 3.14",
3031
"Topic :: Software Development :: Code Generators",
3132
"Topic :: Scientific/Engineering",
3233
]

stubtest_allow.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
docstub\._version\..*
22
docstub._cache.FuncSerializer.__type_params__
3+
(docstub\..*__conditional_annotations__)?

0 commit comments

Comments
 (0)