reflex/reflex/components/el/elements
Thomas Brandého c07eb2a6a0
[ENG-3943]type check for event handler if spec arg are typed (#4046)
* type check for event handler if spec arg are typed

* fix the typecheck logic

* rearrange logic pieces

* add try except

* add try except around compare

* change form and improve type checking

* print key instead

* dang it darglint

* change wording

* add basic test to cover it

* add a slightly more complicated test

* challenge it a bit by doing small capital list

* add multiple argspec

* fix slider event order

* i hate 3.9

* add note for UnionType

* move function to types

* add a test for type hint is subclass

* make on submit dict str any

* add testing for dict cases

* add check against any

* accept dict str str

* bruh i used i twice

* escape strings and print actual error message

* disable the error and print deprecation warning instead

* disable tests

* fix doc message

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-10-31 12:45:28 -07:00
..
__init__.py [REF-3568][REF-3569]Remove deprecations (#3852) 2024-08-29 15:46:18 -07:00
__init__.pyi [REF-3568][REF-3569]Remove deprecations (#3852) 2024-08-29 15:46:18 -07:00
base.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
base.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
forms.py [ENG-3943]type check for event handler if spec arg are typed (#4046) 2024-10-31 12:45:28 -07:00
forms.pyi [ENG-3943]type check for event handler if spec arg are typed (#4046) 2024-10-31 12:45:28 -07:00
inline.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
inline.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
media.py feat: Add support for missing SVGs (#3962) 2024-10-01 09:24:26 -07:00
media.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
metadata.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
metadata.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
other.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
other.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
scripts.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
scripts.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
sectioning.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
sectioning.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
tables.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
tables.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00
typography.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
typography.pyi add type hinting to events (#4145) 2024-10-14 08:44:31 -07:00