Update src/_pytest/terminal.py

Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
This commit is contained in:
Brian Okken 2024-05-04 15:39:52 -07:00 committed by GitHub
parent 832221d827
commit a979073f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1105,8 +1105,9 @@ class TerminalReporter:
self, self,
which_reports: str, which_reports: str,
sep_title: str, sep_title: str,
needed_opt: Optional[str] = None, *,
style: Optional[str] = None, style: str,
needed_opt: Optional[str] = None,
) -> None: ) -> None:
if style != "no": if style != "no":
if not needed_opt or self.hasopt(needed_opt): if not needed_opt or self.hasopt(needed_opt):