Skip to content

Commit 56c52b7

Browse files
committed
rename
1 parent 88d928c commit 56c52b7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,19 @@ def test_override_docs(docstring_style: Literal["google", "numpy"], settings: Du
136136
pytest.param("string", "str", id="builtin"),
137137
pytest.param("path", "pathlib.Path", id="3rd-party"),
138138
# same module as `S`, so no leading `tests.test_settings.`
139-
pytest.param("t", "test_annotation_format.<locals>.T", id="same-module"),
139+
pytest.param("local", "test_annotation_format.<locals>.Local", id="same-module"),
140140
],
141141
)
142142
def test_annotation_format(attr: str, expected: str) -> None:
143143
"""Test that annotation references work correctly."""
144144
from pathlib import Path
145145

146-
class T: ...
146+
class Local: ...
147147

148148
class S(Settings, exported_object_name="s"):
149149
string: str
150150
path: Path
151-
t: T
151+
local: Local
152152

153153
line_iter = iter((inspect.getdoc(S) or "").splitlines())
154154
for line in line_iter:

0 commit comments

Comments
 (0)