Skip to content

Conversation

@AlexWaygood
Copy link
Collaborator

Refs #128

def __init__(self, filename: Path = Path("none")) -> None:
self.filename = filename
def __init__(self, filename: Path | None = None) -> None:
self.filename = Path("(none)") if filename is None else filename
Copy link
Member

Choose a reason for hiding this comment

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

This changes the pathname from none to (none). Is this intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes — it was (none) before I (accidentally) changed it in #144; this changes it back, and makes it consistent with PyiTreeChecker.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(Good catch, though — thanks for checking!)

@srittau srittau merged commit 49e85cf into PyCQA:master Feb 2, 2022
@AlexWaygood AlexWaygood deleted the bugbear branch February 2, 2022 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants