reflex/tests/units
Thomas Brandého c07eb2a6a0
[ENG-3943]type check for event handler if spec arg are typed ()
* 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
..
compiler use pathlib as much as possible () 2024-10-03 17:50:39 +02:00
components [ENG-3943]type check for event handler if spec arg are typed () 2024-10-31 12:45:28 -07:00
experimental reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
middleware reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
states rx.event(background=True) () 2024-10-30 11:10:51 -07:00
utils [ENG-3943]type check for event handler if spec arg are typed () 2024-10-31 12:45:28 -07:00
vars Do not auto-determine generic args if already supplied () 2024-10-11 17:08:39 -07:00
__init__.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
conftest.py add workflow to check dependencies on release branch () 2024-10-07 20:57:02 +02:00
test_app.py use better typing for on_load () 2024-10-30 16:52:16 -07:00
test_attribute_access_type.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_base.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_config.py port enum env var support from () 2024-10-28 11:56:40 -07:00
test_db_config.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_event.py LiteralEventChainVar becomes an ArgsFunctionOperation () 2024-10-16 11:35:09 -07:00
test_health_endpoint.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_model.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_page.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_prerequisites.py expose staticPageGenerationTimeout () 2024-10-29 22:02:35 -07:00
test_route.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_sqlalchemy.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_state_tree.py add workflow to check dependencies on release branch () 2024-10-07 20:57:02 +02:00
test_state.py use better typing for on_load () 2024-10-30 16:52:16 -07:00
test_style.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_telemetry.py use pathlib as much as possible () 2024-10-03 17:50:39 +02:00
test_testing.py reorganize all tests in a single top folder () 2024-09-26 01:22:52 +02:00
test_var.py make var system expandable () 2024-10-21 17:05:13 -07:00