Skip to content

Commit 9bf7194

Browse files
Pierre-Sassoulascdce8p
authored andcommitted
[python 3.14] no-name-in-module for typing.ForwardRef
1 parent aec5a88 commit 9bf7194

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[testoptions]
2+
# typing.ForwardRef raise a no-name-in-module for 3.14
3+
max_pyver=3.13
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# pylint: disable=missing-module-docstring,missing-class-docstring,too-few-public-methods,invalid-name
2+
3+
from annotationlib import Format
4+
5+
Cls = Format.ForwardRef("Cls")
6+
7+
8+
class Cls:
9+
pass
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[testoptions]
2+
# https://docs.python.org/3.14/whatsnew/3.14.html#pep-649-and-749-deferred-evaluation-of-annotations
3+
min_pyver=3.14

0 commit comments

Comments
 (0)