Skip to content

Conversation

@swest50
Copy link
Collaborator

@swest50 swest50 commented Mar 1, 2025

Changes the NormalizedFileName class into a dataclass to reduce some boilerplate and add additional builtin functionality of dataclasses (automatic repr, etc)

Adds __str__ to return the name to make it simpler to get the normalized filename.
If a user just wants the normalized name but doesn't care to check the other info, they can now use str(normalize_file_name(file)) and will return the name string regardless of whether normalize_file_name returns a string or instance of NormalizedFileName

@swest50 swest50 requested a review from nightlark March 1, 2025 00:33
@nightlark nightlark force-pushed the dapper-python-update branch from 3929728 to c80a723 Compare March 20, 2025 21:28
@nightlark nightlark merged commit c80a723 into main Mar 20, 2025
9 checks passed
@nightlark nightlark deleted the dapper-python-update branch March 20, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants