Closed ztravis closed 4 weeks ago
Thanks for the report. Do you want to submit a corresponding PR to fix this?
It there are no other easier ways to achieve this, I would recommend to copy and re-use the classproperty
implementation from Django with appropriate attribution (the license is compatible): https://docs.djangoproject.com/en/5.0/_modules/django/utils/functional/#classproperty
Sorry I missed your comment! Thank you for the suggestion and fix. Next time I will be happy to open a PR.
The
Ressources
object underpypdf.constants
was deprecated and replaced with a correctly-spelled variant. The deprecated version uses@classmethod @property
static-esque properties so that a deprecation message can be logged, but I think this is only supported in a limited range of python versions (3.9 and 3.10) according to https://docs.python.org/3/library/functions.html#classmethod. For example, on python3.8 these end up being typemethod
, which causes unexpected behavior when they're used (e.g. as object keys), e.g.: