You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2024-11-29-dynamic-enums.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,4 +238,21 @@ if __name__ == "__main__":
238
238
I like this solution because of its simplicity, but `mypy` raises a [`[misc]` error](https://mypy.readthedocs.io/en/stable/error_code_list.html#miscellaneous-checks-misc) saying:
239
239
>Second argument of Enum() must be string, tuple, listordict literal for mypy to determine Enum members
240
240
241
-
Because of this, I will be sticking with my inheritance approach.
241
+
Because of this, I will be sticking with my inheritance approach.
0 commit comments