SalladShooter / phyal

Quickly build websites without the hassle of HTML
https://phyal.vercel.app/
MIT License
34 stars 3 forks source link

Explicit typing #20

Closed Matt-DESTROYER closed 2 months ago

Matt-DESTROYER commented 2 months ago

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).