Mostly added explicit typing, although some types are a little unclear and I'll need to play around and figure them out. I haven't done too much testing to check that I haven't broken anything, although the demo app still worked perfectly fine when I tested it.
I added the typing_extensions package as a requirement solely for the Self type, which is actually included in the built-in typing module, but only for Python 3.11 or greater.
I also added a bunch more Tags and made sure all Tags are in order as they appear in Mozilla's HTML Element Reference (I also added comments for the headings/sections).
Mostly added explicit typing, although some types are a little unclear and I'll need to play around and figure them out. I haven't done too much testing to check that I haven't broken anything, although the demo app still worked perfectly fine when I tested it.
I added the
typing_extensions
package as a requirement solely for theSelf
type, which is actually included in the built-intyping
module, but only for Python 3.11 or greater.I also added a bunch more Tags and made sure all Tags are in order as they appear in Mozilla's HTML Element Reference (I also added comments for the headings/sections).