You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#213 is updating matchers to make regex the string attribute for matchers (and pattern the compiled regexes), bringing it closer to raw regexes.yaml names.
But that's also a minor issue with every other attribute of these things, they could and should match the source exactly. This would allow simplifying the loaders because then the data from deserialization could be splatted directly into the attributs.
While doing this for codegen was found to be a lot less efficient (#214) this concern should be much less so here, because currently the loader code has to retrieve and apply individual attributes:
#213 is updating matchers to make
regex
the string attribute for matchers (and pattern the compiled regexes), bringing it closer to raw regexes.yaml names.But that's also a minor issue with every other attribute of these things, they could and should match the source exactly. This would allow simplifying the loaders because then the data from deserialization could be splatted directly into the attributs.
While doing this for codegen was found to be a lot less efficient (#214) this concern should be much less so here, because currently the loader code has to retrieve and apply individual attributes:
uap-python/src/ua_parser/loaders.py
Lines 111 to 118 in 8c0f5c3
versus
matchers.UserAgentMatcher(**p)
:The text was updated successfully, but these errors were encountered: