diff --git a/python/pyromark/_options.py b/python/pyromark/_options.py index e402524..72709a4 100644 --- a/python/pyromark/_options.py +++ b/python/pyromark/_options.py @@ -1,5 +1,6 @@ from __future__ import annotations +import sys from enum import IntFlag @@ -49,3 +50,7 @@ class Options(IntFlag): """""" ENABLE_DEFINITION_LIST = 1 << 12 """""" + + if sys.version_info < (3, 11): + __str__ = int.__repr__ + __format__ = int.__format__