Add validation to metric names, slight refactoring - #7
Conversation
|
Woah, you basically rewrote the whole thing! It's certainly a lot more proper than what I had before, and I can already see a number of benefits to some of these changes, like performing validation while creating Any reason why you used attrs instead of dataclasses for your data structures? PS: Sorry if I've been leaving the issues and PRs to languish for so long, I've really neglected my personnal Github projects in recent years. |
I couldn't say 😅 Like I wrote earlier, I haven't looked at this in fifteen months. As a quick guess, I assume I wanted to leverage the field validation facilities It may be a good idea to replace |
|
I began removing the dependency on |
Remove dependency on `attrs`
|
Hi @sm-Fifteen! Take a look when you get the chance. |
|
@afparsons: Alright, sorry for taking so long to come back to this, I'm looking at it now.
That aside, it looks pretty good! |
|
Woah, I totally forgot about this pull request. Maybe I'll get around to it. Sorry for the long wait! |
|
Don't worry about it. I've been in a continuous cycle of forgetting and remembering about this repo for the past 4 years, I understand how it's like. |
I was going through some old forks of mine and realized I had made some changes on a branch.
This may have also served as a fix for #3.
I can confirm that this code does indeed work in a production application.
Frankly, I don't entirely remember exactly what my changes achieve, since it has been fifteen months since I looked at this. I think I added some validation and a few other conveniences.
Please merge if you think these changes are useful! Let me know if you need me to explain any parts in greater detail.