We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ffdef7 commit 2ae1ff4Copy full SHA for 2ae1ff4
scheduler/settings.py
@@ -43,7 +43,10 @@ def conf_settings():
43
return
44
if not isinstance(user_settings, dict):
45
raise ImproperlyConfigured("SCHEDULER_CONFIG should be a SchedulerConfiguration or dict")
46
- annotations = get_annotations(SCHEDULER_CONFIG)
+
47
+ # Use `type(obj)` because Python 3.14+ `annotationlib.get_annotations()` works only on classes/functions/modules.
48
+ # It reads __annotations__ or __annotate__; instances without annotations will fail.
49
+ annotations = get_annotations(type(SCHEDULER_CONFIG))
50
for k, v in user_settings.items():
51
if k not in annotations:
52
raise ImproperlyConfigured(f"Unknown setting {k} in SCHEDULER_CONFIG")
0 commit comments