Skip to content

Commit 40d6a7c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3b6c1e9 commit 40d6a7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,13 +2017,13 @@ def _showfixtures_main(config: Config, session: Session) -> None:
20172017

20182018

20192019
def get_return_annotation(fixture_func: Callable[..., Any]) -> str:
2020-
pattern = re.compile(r'\b(?:(?:<[^>]+>|[A-Za-z_]\w*)\.)+([A-Za-z_]\w*)\b')
2020+
pattern = re.compile(r"\b(?:(?:<[^>]+>|[A-Za-z_]\w*)\.)+([A-Za-z_]\w*)\b")
20212021

20222022
sig = str(signature(fixture_func))
20232023
sig_parts = sig.split(" -> ")
20242024
if len(sig_parts) < 2:
20252025
return ""
2026-
return pattern.sub(r'\1', sig_parts[-1])
2026+
return pattern.sub(r"\1", sig_parts[-1])
20272027

20282028

20292029
def write_docstring(tw: TerminalWriter, doc: str, indent: str = " ") -> None:

0 commit comments

Comments
 (0)