Commit Graph

1994 Commits

Author SHA1 Message Date
Khaleel Al-Adhami
2b05ee98ed make it handle slice 2024-11-15 17:30:45 -08:00
Khaleel Al-Adhami
ed1ae0d3a2 add missing return 2024-11-15 17:15:43 -08:00
Khaleel Al-Adhami
7d0a4f7133 make safe issubclass 2024-11-15 17:12:42 -08:00
Khaleel Al-Adhami
079cc56f59 more types 2024-11-15 16:59:28 -08:00
Khaleel Al-Adhami
92b1232806 would this fix it? no clue 2024-11-15 16:16:13 -08:00
Khaleel Al-Adhami
7f1dc7c841 remove .bool 2024-11-15 15:58:03 -08:00
Khaleel Al-Adhami
eac54d60d2 call guess type 2024-11-15 15:54:04 -08:00
Khaleel Al-Adhami
702670ff26 add components to var data 2024-11-15 15:47:46 -08:00
Khaleel Al-Adhami
88cfb3b7e2 handle var at top level 2024-11-15 15:11:44 -08:00
Khaleel Al-Adhami
53b98543cc default factory 2024-11-15 14:58:19 -08:00
Khaleel Al-Adhami
5f0546f32e what am i doing anymore 2024-11-15 14:53:51 -08:00
Khaleel Al-Adhami
2c04153013 special case ellipsis types 2024-11-14 09:45:44 -08:00
Khaleel Al-Adhami
a9db61b371 get it right pyright 2024-11-13 19:03:42 -08:00
Khaleel Al-Adhami
3cdd2097b6 fix pyright issues outside of vars 2024-11-13 18:43:20 -08:00
Khaleel Al-Adhami
9d7e353ed3 fix pyright issues 2024-11-13 18:40:06 -08:00
Khaleel Al-Adhami
f4aa1f58c3 implement type computers 2024-11-13 18:17:53 -08:00
Khaleel Al-Adhami
ebc81811c0 fix silly mistakes 2024-11-13 13:51:47 -08:00
Khaleel Al-Adhami
1e9743dcd6 Merge branch 'main' into add-validation-to-function-vars 2024-11-13 13:23:38 -08:00
Khaleel Al-Adhami
05bd41c040 add validation 2024-11-13 13:22:01 -08:00
Elijah Ahianyo
853a9d8614
Add template name to reflex init success msg (#4349)
* Add template name to reflex init success msg

* fix pyright message
2024-11-13 10:24:36 +00:00
Khaleel Al-Adhami
27c1a7e94d
add typing to function vars (#4372)
* add typing to function vars

* import ParamSpec from typing_extensions

* remove ellipsis as they are not supported in 3.9

* try importing everything from extensions

* special case 3.9

* don't use Any from extensions

* get typevar from extensions
2024-11-12 20:00:02 -08:00
Khaleel Al-Adhami
f9b24fe5bd get typevar from extensions 2024-11-12 16:38:30 -08:00
Khaleel Al-Adhami
6745d6cb9d don't use Any from extensions 2024-11-12 16:35:04 -08:00
Khaleel Al-Adhami
7ada0ea5b9 special case 3.9 2024-11-12 16:23:06 -08:00
Khaleel Al-Adhami
48951dbabd try importing everything from extensions 2024-11-12 16:11:30 -08:00
Khaleel Al-Adhami
7aa9245514 remove ellipsis as they are not supported in 3.9 2024-11-12 16:07:17 -08:00
Khaleel Al-Adhami
9b06d684cd import ParamSpec from typing_extensions 2024-11-12 16:03:40 -08:00
Khaleel Al-Adhami
56f0d6375b add typing to function vars 2024-11-12 16:01:32 -08:00
Masen Furer
5d88263cd8
[ENG-4098] Deconfuse key/value of State.get_value / dict / get_delta (#4371)
Because of some dodgy logic in Base.get_value and State.dict / State.get_delta
when the value of some state var X happened to be the name of another var in
the state Y, then the value for X would be returned as the value of Y.

wat.

Fixes #4369
2024-11-12 13:24:06 -08:00
Masen Furer
2b7ef0dccc
Temporarily downpin @radix-ui/themes <3.1.5 (#4370)
* Temporarily downpin @radix-ui/themes <3.1.5

A visual/style regression was introduced in @radix-ui/themes 3.1.5
as described in radix-ui/themes#627 which reflex needs to avoid.

* Get expected radix library version from component
2024-11-12 12:44:59 -08:00
Khaleel Al-Adhami
a1158cdb1c
redesign error boundary screen (#4329)
* redesign error boundary screen

* pyi time

* add color

* i hate python 3.9
2024-11-12 12:36:42 -08:00
1Codev
7cf3050da0
Path change after Astral 0.5.0 update (#4336)
* Astral 0.5.0 path change

https://github.com/astral-sh/uv/releases

Use XDG (i.e. ~/.local/bin) instead of the Cargo home directory in the installer

* Fix path in production-app-platform example

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-11-12 09:57:58 -08:00
Masen Furer
686548cbb1
Only pass Model.__fields__ when casting event args (#4356)
Attempting to initialize relationship fields in a sqlmodel model throws an
error, so only pass defined pydantic __fields__ if the type is a Model.
2024-11-11 16:14:08 -08:00
Masen Furer
35c8afd8c8
Bump reflex-hosting-cli dep to 0.1.15 for v2 (#4355) 2024-11-11 16:12:01 -08:00
Masen Furer
082f9a0bd1
export Color and ImportDict in top-level namespace (#4352)
These are useful for typing purposes and should be exposed at the top level to
avoid requiring deep imports from subpackages that we may need to change later.
2024-11-11 14:41:31 -08:00
Masen Furer
f78e3f54ef
bump to 0.6.6dev1 for further development (#4351) 2024-11-11 14:41:18 -08:00
Khaleel Al-Adhami
e0d1a58496
fix upload argspec being missing (#4335) 2024-11-08 10:12:29 -08:00
Elijah Ahianyo
cd59ab5406
[ENG-4010]Codeblock cleanup in markdown (#4233)
* Codeblock cleanup in markdown

* Initial approach to getting this working with rx.memo and reflex web

* abstract the map var logic

* the tests are not valid + pyright fix

* darglint fix

* Add unit tests plus mix components

* pyi run

* rebase on main

* fix darglint

* testing different OS

* revert

* This should fix it. Right?

* Fix tests

* minor fn signature fix

* use ArgsFunctionOperation

* use destructured args and pass the tests

* fix remaining unit tests

* fix pyi files

* rebase on main

* move language regex on codeblock to markdown

* fix tests

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-07 19:18:14 -08:00
Simon Young
3d85936009
update cli version (#4333)
Co-authored-by: simon <simon@reflex.dev>
2024-11-07 19:17:55 -08:00
Khaleel Al-Adhami
a454b705a8
fix imports with alias from $ (#4332) 2024-11-07 19:17:07 -08:00
Khaleel Al-Adhami
4c4c59bf04
convert event return types to type hints (#4331) 2024-11-07 16:33:42 -08:00
Masen Furer
2ee2d52035
Fix pyi file merged after custom_attrs type change (#4330) 2024-11-07 16:18:28 -08:00
Elijah Ahianyo
855a20fd1c
[GTM-648]Add Missing Table props (#4322)
* Add Missing Table props

* add more props
2024-11-07 16:04:03 -08:00
Masen Furer
227d09a02c
test_exception_handlers: add test case that triggers ErrorBoundary (#4327) 2024-11-07 16:01:37 -08:00
benedikt-bartscher
8fd5c9f200
improve typing for serializer decorator (#4317)
* improve typing for serializer decorator

* use wrapped logic

* dang it darglint

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-07 15:52:11 -08:00
Khaleel Al-Adhami
0c482bda3c
mark var methods as private (#4319) 2024-11-07 14:50:26 -08:00
Khaleel Al-Adhami
7843a517bc
change custom attr to accept any (#4323) 2024-11-07 14:18:13 -08:00
benedikt-bartscher
2cb193e8d6
improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
Simon Young
e457d53924
Adding hosting v1 support (#4309)
Co-authored-by: simon <simon@reflex.dev>
Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-11-06 17:18:41 -08:00
Khaleel Al-Adhami
68407ce2d8
unbreak pyi plotly (#4320) 2024-11-06 16:56:26 -08:00