Skip to content

Commit

Permalink
Merge pull request #67 from it176131/add-comments
Browse files Browse the repository at this point in the history
modified:   _posts/2024-11-29-dynamic-enums.md
  • Loading branch information
it176131 authored Nov 30, 2024
2 parents 57dc2b2 + c3528be commit 7ebd063
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion _posts/2024-11-29-dynamic-enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,21 @@ if __name__ == "__main__":
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:
>Second argument of Enum() must be string, tuple, list or dict literal for mypy to determine Enum members
Because of this, I will be sticking with my inheritance approach.
Because of this, I will be sticking with my inheritance approach.
<script src="https://giscus.app/client.js"
data-repo="it176131/it176131.github.io"
data-repo-id="R_kgDOK1ukqg"
data-category="Announcements"
data-category-id="DIC_kwDOK1ukqs4CcOnS"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="light"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>

0 comments on commit 7ebd063

Please sign in to comment.