From 008c2a749b6f11163df5aa2d9ebf7b3c6b981010 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 12 Jan 2025 13:11:30 -0600 Subject: [PATCH] Add two new-in-py3.13 class attributes to GroupBase Fixes compatibility with Python 3.13 --- dbsettings/group.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dbsettings/group.py b/dbsettings/group.py index 84e27ce..a60f5fb 100644 --- a/dbsettings/group.py +++ b/dbsettings/group.py @@ -17,6 +17,8 @@ def __init__(mcs, name, bases, attrs): attrs.pop('__module__', None) attrs.pop('__doc__', None) attrs.pop('__qualname__', None) + attrs.pop('__firstlineno__', None) + attrs.pop('__static_attributes__', None) for attribute_name, attr in attrs.items(): if not isinstance(attr, Value): raise TypeError('The type of %s (%s) is not a valid Value.' %