Re: Change `to_python` and `to_url` to be class methods on path converters

2022-08-28 Thread Petter friberg
cess: it would need > to check whether the methods are class or instance level, and instantiate > the converter or not. We wouldn't want to force all converters to move to > use classmethods as that would be a backwards incompatible change, > requiring a deprecation cycle.

Change `to_python` and `to_url` to be class methods on path converters

2022-08-24 Thread Petter friberg
Hi, I ran in to the situation of wanting `to_python` and `to_url` be decorated with `@classmethod` to avoid having to declare an additional (kind of no-op) class with those 2 methods. Given that I have a couple of custom python data structures that can be encoded into path params, it would be