Move normalize header functions from _utils.py to _models.py#3382
Move normalize header functions from _utils.py to _models.py#3382lovelydinosaur merged 2 commits intoencode:masterfrom
Conversation
|
Thanks. I'd suggest we should stay consistent and use |
|
I have converted the inline method into a similar function. |
|
I have done some more refactoring, but I am not sure if this simplifies or complicates it. I had to add some things due to mypy type checking. It replaces the whole init with: |
lovelydinosaur
left a comment
There was a problem hiding this comment.
Exactly like this, yep. 👍
Just helps keep things neat & localised.
|
Thanks @AstralScribe. 😊
Let's take a pass on that particular follow-up. What you've got here is great as it is. |
Summary
Issue: #3381
This PR refactors the
normalize_header_keyas an inline method and movesnormalize_header_valuefunction to _models.py from _utils.py.Checklist