Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify the code and support Pytest 8 #64

Merged
merged 8 commits into from
Mar 30, 2024
Merged

Simplify the code and support Pytest 8 #64

merged 8 commits into from
Mar 30, 2024

Conversation

lgpage
Copy link
Owner

@lgpage lgpage commented Mar 16, 2024

Closes #61
Fixes #58
Fixes #59

@lgpage
Copy link
Owner Author

lgpage commented Mar 16, 2024

@embray if you have a gap would you mind reviewing this?

@lgpage lgpage merged commit c10ba65 into main Mar 30, 2024
17 checks passed
@lgpage lgpage deleted the pytest-8 branch March 30, 2024 06:20
@property
def purebasename(self):
return super().basename.replace(EXT_SUFFIX, '')
def _without_suffixes(path: str | pathlib.Path) -> pathlib.Path:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, the use of | for the type annotation breaks code using this plugin on Python 3.8 and 3.9 (both still supported by pytest), see https://docs.python.org/3/library/typing.html#typing.Union

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants