generate pyi files when building/publishing 3rd party component (#2945)

* build pyi files when building/publishing 3rd party

* fix typo in workflow

* add future annotation

* add tests to pass coverage check

* add more unit tests

* omit pyi_generator from test coverage

* change black from dev deps to direct deps

* remake all pyi

* format pyi if black is present, return as if otherwise

* fix requested changes

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
This commit is contained in:
Thomas Brandého 2024-03-29 17:54:21 +01:00 committed by GitHub
parent 55b0fb36e8
commit 0af4770180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
176 changed files with 542 additions and 346 deletions

View File

@ -1,6 +1,8 @@
[run] [run]
source = reflex source = reflex
branch = true branch = true
omit =
*/pyi_generator.py
[report] [report]
show_missing = true show_missing = true
@ -24,6 +26,9 @@ exclude_also =
# Don't complain about abstract methods, they aren't run: # Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod @(abc\.)?abstractmethod
# Don't complain about overloaded methods:
@overload
ignore_errors = True ignore_errors = True

View File

@ -3,7 +3,7 @@ name: check-generated-pyi
on: on:
push: push:
branches: [ "main" ] branches: [ "main" ]
# We don't just trigger on pyi_generator.py and the components dir, because # We don't just trigger on make_pyi.py and the components dir, because
# there are other things that can change the generator output # there are other things that can change the generator output
# e.g. black version, reflex.Component, reflex.Var. # e.g. black version, reflex.Component, reflex.Var.
paths-ignore: paths-ignore:
@ -25,11 +25,11 @@ jobs:
run-poetry-install: true run-poetry-install: true
create-venv-at-path: .venv create-venv-at-path: .venv
- run: | - run: |
poetry run python scripts/pyi_generator.py poetry run python scripts/make_pyi.py
if [[ $(git status --porcelain) ]]; then if [[ $(git status --porcelain) ]]; then
git status git status
git diff git diff
echo "ERROR: pyi_generator.py output is out of date. Please run scripts/pyi_generator.py and commit the changes." echo "ERROR: make_pyi.py output is out of date. Please run scripts/make_pyi.py and commit the changes."
exit 1 exit 1
else else
echo "No diffs - AOK!" echo "No diffs - AOK!"

View File

@ -32,4 +32,4 @@ repos:
always_run: true always_run: true
language: system language: system
description: 'Update pyi files as needed' description: 'Update pyi files as needed'
entry: python scripts/pyi_generator.py entry: python scripts/make_pyi.py

View File

@ -103,5 +103,5 @@ For some pull requests when adding new components you will have to generate a py
(Please check in with the team before adding a new component to Reflex we are cautious about adding new components to Reflex's core.) (Please check in with the team before adding a new component to Reflex we are cautious about adding new components to Reflex's core.)
``` bash ``` bash
poetry run python scripts/pyi_generator.py poetry run python scripts/make_pyi.py
``` ```

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/app_wrap.py""" """Stub file for reflex/components/base/app_wrap.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,4 +1,5 @@
"""A bare component.""" """A bare component."""
from __future__ import annotations from __future__ import annotations
from typing import Any, Iterator from typing import Any, Iterator
@ -27,7 +28,7 @@ class Bare(Component):
if isinstance(contents, Var) and contents._var_data: if isinstance(contents, Var) and contents._var_data:
contents = contents.to(str) contents = contents.to(str)
else: else:
contents = str(contents) contents = str(contents) if contents is not None else ""
return cls(contents=contents) # type: ignore return cls(contents=contents) # type: ignore
def _render(self) -> Tag: def _render(self) -> Tag:
@ -42,6 +43,4 @@ class Bare(Component):
Yields: Yields:
The contents if it is a Var, otherwise nothing. The contents if it is a Var, otherwise nothing.
""" """
if isinstance(self.contents, Var): yield self.contents
# Fast path for Bare text components.
yield self.contents

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/body.py""" """Stub file for reflex/components/base/body.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/document.py""" """Stub file for reflex/components/base/document.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/fragment.py""" """Stub file for reflex/components/base/fragment.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/head.py""" """Stub file for reflex/components/base/head.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/link.py""" """Stub file for reflex/components/base/link.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/meta.py""" """Stub file for reflex/components/base/meta.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/base/script.py""" """Stub file for reflex/components/base/script.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/base.py""" """Stub file for reflex/components/chakra/base.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/badge.py""" """Stub file for reflex/components/chakra/datadisplay/badge.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/code.py""" """Stub file for reflex/components/chakra/datadisplay/code.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/divider.py""" """Stub file for reflex/components/chakra/datadisplay/divider.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/keyboard_key.py""" """Stub file for reflex/components/chakra/datadisplay/keyboard_key.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/list.py""" """Stub file for reflex/components/chakra/datadisplay/list.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/stat.py""" """Stub file for reflex/components/chakra/datadisplay/stat.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/table.py""" """Stub file for reflex/components/chakra/datadisplay/table.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/datadisplay/tag.py""" """Stub file for reflex/components/chakra/datadisplay/tag.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/disclosure/accordion.py""" """Stub file for reflex/components/chakra/disclosure/accordion.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/disclosure/tabs.py""" """Stub file for reflex/components/chakra/disclosure/tabs.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/disclosure/transition.py""" """Stub file for reflex/components/chakra/disclosure/transition.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/disclosure/visuallyhidden.py""" """Stub file for reflex/components/chakra/disclosure/visuallyhidden.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/feedback/alert.py""" """Stub file for reflex/components/chakra/feedback/alert.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/feedback/circularprogress.py""" """Stub file for reflex/components/chakra/feedback/circularprogress.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/feedback/progress.py""" """Stub file for reflex/components/chakra/feedback/progress.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/feedback/skeleton.py""" """Stub file for reflex/components/chakra/feedback/skeleton.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/feedback/spinner.py""" """Stub file for reflex/components/chakra/feedback/spinner.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/button.py""" """Stub file for reflex/components/chakra/forms/button.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/checkbox.py""" """Stub file for reflex/components/chakra/forms/checkbox.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/colormodeswitch.py""" """Stub file for reflex/components/chakra/forms/colormodeswitch.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/date_picker.py""" """Stub file for reflex/components/chakra/forms/date_picker.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/date_time_picker.py""" """Stub file for reflex/components/chakra/forms/date_time_picker.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/editable.py""" """Stub file for reflex/components/chakra/forms/editable.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/email.py""" """Stub file for reflex/components/chakra/forms/email.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/form.py""" """Stub file for reflex/components/chakra/forms/form.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/iconbutton.py""" """Stub file for reflex/components/chakra/forms/iconbutton.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/input.py""" """Stub file for reflex/components/chakra/forms/input.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/numberinput.py""" """Stub file for reflex/components/chakra/forms/numberinput.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/password.py""" """Stub file for reflex/components/chakra/forms/password.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/pininput.py""" """Stub file for reflex/components/chakra/forms/pininput.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/radio.py""" """Stub file for reflex/components/chakra/forms/radio.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/rangeslider.py""" """Stub file for reflex/components/chakra/forms/rangeslider.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/select.py""" """Stub file for reflex/components/chakra/forms/select.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/slider.py""" """Stub file for reflex/components/chakra/forms/slider.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/switch.py""" """Stub file for reflex/components/chakra/forms/switch.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/textarea.py""" """Stub file for reflex/components/chakra/forms/textarea.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/forms/time_picker.py""" """Stub file for reflex/components/chakra/forms/time_picker.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/aspect_ratio.py""" """Stub file for reflex/components/chakra/layout/aspect_ratio.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/box.py""" """Stub file for reflex/components/chakra/layout/box.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/card.py""" """Stub file for reflex/components/chakra/layout/card.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/center.py""" """Stub file for reflex/components/chakra/layout/center.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/container.py""" """Stub file for reflex/components/chakra/layout/container.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/flex.py""" """Stub file for reflex/components/chakra/layout/flex.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/grid.py""" """Stub file for reflex/components/chakra/layout/grid.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/spacer.py""" """Stub file for reflex/components/chakra/layout/spacer.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/stack.py""" """Stub file for reflex/components/chakra/layout/stack.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/layout/wrap.py""" """Stub file for reflex/components/chakra/layout/wrap.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/media/avatar.py""" """Stub file for reflex/components/chakra/media/avatar.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/media/icon.py""" """Stub file for reflex/components/chakra/media/icon.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/media/image.py""" """Stub file for reflex/components/chakra/media/image.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/navigation/breadcrumb.py""" """Stub file for reflex/components/chakra/navigation/breadcrumb.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/navigation/link.py""" """Stub file for reflex/components/chakra/navigation/link.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/navigation/linkoverlay.py""" """Stub file for reflex/components/chakra/navigation/linkoverlay.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/navigation/stepper.py""" """Stub file for reflex/components/chakra/navigation/stepper.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/alertdialog.py""" """Stub file for reflex/components/chakra/overlay/alertdialog.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/drawer.py""" """Stub file for reflex/components/chakra/overlay/drawer.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/menu.py""" """Stub file for reflex/components/chakra/overlay/menu.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/modal.py""" """Stub file for reflex/components/chakra/overlay/modal.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/popover.py""" """Stub file for reflex/components/chakra/overlay/popover.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/overlay/tooltip.py""" """Stub file for reflex/components/chakra/overlay/tooltip.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/typography/heading.py""" """Stub file for reflex/components/chakra/typography/heading.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/typography/highlight.py""" """Stub file for reflex/components/chakra/typography/highlight.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/typography/span.py""" """Stub file for reflex/components/chakra/typography/span.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/chakra/typography/text.py""" """Stub file for reflex/components/chakra/typography/text.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1085,15 +1085,19 @@ class Component(BaseComponent, ABC):
*var_imports, *var_imports,
) )
def get_imports(self) -> imports.ImportDict: def get_imports(self, collapse: bool = False) -> imports.ImportDict:
"""Get all the libraries and fields that are used by the component and its children. """Get all the libraries and fields that are used by the component and its children.
Args:
collapse: Whether to collapse the imports by removing duplicates.
Returns: Returns:
The import dict with the required imports. The import dict with the required imports.
""" """
return imports.merge_imports( _imports = imports.merge_imports(
self._get_imports(), *[child.get_imports() for child in self.children] self._get_imports(), *[child.get_imports() for child in self.children]
) )
return imports.collapse_imports(_imports) if collapse else _imports
def _get_mount_lifecycle_hook(self) -> str | None: def _get_mount_lifecycle_hook(self) -> str | None:
"""Generate the component lifecycle hook. """Generate the component lifecycle hook.

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/core/banner.py""" """Stub file for reflex/components/core/banner.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/core/client_side_routing.py""" """Stub file for reflex/components/core/client_side_routing.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/core/debounce.py""" """Stub file for reflex/components/core/debounce.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/core/html.py""" """Stub file for reflex/components/core/html.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/core/upload.py""" """Stub file for reflex/components/core/upload.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/datadisplay/code.py""" """Stub file for reflex/components/datadisplay/code.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/datadisplay/dataeditor.py""" """Stub file for reflex/components/datadisplay/dataeditor.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/element.py""" """Stub file for reflex/components/el/element.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/base.py""" """Stub file for reflex/components/el/elements/base.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/forms.py""" """Stub file for reflex/components/el/elements/forms.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/inline.py""" """Stub file for reflex/components/el/elements/inline.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/media.py""" """Stub file for reflex/components/el/elements/media.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/metadata.py""" """Stub file for reflex/components/el/elements/metadata.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/other.py""" """Stub file for reflex/components/el/elements/other.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/scripts.py""" """Stub file for reflex/components/el/elements/scripts.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/sectioning.py""" """Stub file for reflex/components/el/elements/sectioning.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/tables.py""" """Stub file for reflex/components/el/elements/tables.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/el/elements/typography.py""" """Stub file for reflex/components/el/elements/typography.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/gridjs/datatable.py""" """Stub file for reflex/components/gridjs/datatable.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/lucide/icon.py""" """Stub file for reflex/components/lucide/icon.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

View File

@ -1,6 +1,6 @@
"""Stub file for reflex/components/markdown/markdown.py""" """Stub file for reflex/components/markdown/markdown.py"""
# ------------------- DO NOT EDIT ---------------------- # ------------------- DO NOT EDIT ----------------------
# This file was generated by `scripts/pyi_generator.py`! # This file was generated by `reflex/utils/pyi_generator.py`!
# ------------------------------------------------------ # ------------------------------------------------------
from typing import Any, Dict, Literal, Optional, Union, overload from typing import Any, Dict, Literal, Optional, Union, overload

Some files were not shown because too many files have changed in this diff Show More