From 20122eb32ecb027617e89f9018f464b175679a0a Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Mon, 6 Oct 2025 16:57:38 +0200 Subject: [PATCH] fix attribute error for python <3.10 --- eos/options.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eos/options.py b/eos/options.py index c97f6bf..c9c8d30 100644 --- a/eos/options.py +++ b/eos/options.py @@ -47,7 +47,10 @@ class ArgParsable: optional = False value = getattr(cls, key, None) - cls.__doc__ += f" {key} ({typ.__name__})" + try: + cls.__doc__ += f" {key} ({typ.__name__})" + except AttributeError: + cls.__doc__ += f" {key}" if isinstance(value, Field): if value.default is not MISSING: cls.__doc__ += f" = {value.default}"