Ressources
deprecation does not work for some python versions
#2697
Labels
is-bug
From a users perspective, this is a bug - a violation of the expected behavior with a compliant PDF
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 type
method
, which causes unexpected behavior when they're used (e.g. as object keys), e.g.:The text was updated successfully, but these errors were encountered: