diff --git a/pynecone/components/component.py b/pynecone/components/component.py index 5f749c6ec..efdd0fdaa 100644 --- a/pynecone/components/component.py +++ b/pynecone/components/component.py @@ -320,7 +320,7 @@ class Component(Base, ABC): # Extract the style for this component. component_style = Style(style[type(self)]) - # Only add stylee props that are not overridden. + # Only add style props that are not overridden. component_style = { k: v for k, v in component_style.items() if k not in self.style } diff --git a/pynecone/components/forms/switch.py b/pynecone/components/forms/switch.py index 12a4b43b4..0102b0c16 100644 --- a/pynecone/components/forms/switch.py +++ b/pynecone/components/forms/switch.py @@ -7,7 +7,7 @@ from pynecone.var import Var class Switch(ChakraComponent): - """Togglable switch component.""" + """Toggleable switch component.""" tag = "Switch" diff --git a/pynecone/components/layout/grid.py b/pynecone/components/layout/grid.py index e52182645..94294304b 100644 --- a/pynecone/components/layout/grid.py +++ b/pynecone/components/layout/grid.py @@ -80,7 +80,7 @@ class ResponsiveGrid(ChakraComponent): # Shorthand prop for gridRow row: Var[str] - # Alist that defines the number of columns for each breakpoint. + # A list that defines the number of columns for each breakpoint. columns: Var[List[int]] # The width at which child elements will break into columns. Pass a number for pixel values or a string for any other valid CSS length. diff --git a/pynecone/components/layout/html.py b/pynecone/components/layout/html.py index 3f73ab6bf..78f934571 100644 --- a/pynecone/components/layout/html.py +++ b/pynecone/components/layout/html.py @@ -30,7 +30,7 @@ class Html(Box): Raises: ValueError: If children are not provided or more than one child is provided. """ - # If children are not prvided, throw an error. + # If children are not provided, throw an error. if len(children) != 1: raise ValueError("Must provide children to the html component.") else: diff --git a/pynecone/components/overlay/alertdialog.py b/pynecone/components/overlay/alertdialog.py index a73c78aaf..9514cc67b 100644 --- a/pynecone/components/overlay/alertdialog.py +++ b/pynecone/components/overlay/alertdialog.py @@ -48,7 +48,7 @@ class AlertDialog(ChakraComponent): size: Var[str] # If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** - use_intert: Var[bool] + use_inert: Var[bool] @classmethod def get_triggers(cls) -> Set[str]: diff --git a/pynecone/components/overlay/drawer.py b/pynecone/components/overlay/drawer.py index 876aa65cc..ad75b28a6 100644 --- a/pynecone/components/overlay/drawer.py +++ b/pynecone/components/overlay/drawer.py @@ -51,7 +51,7 @@ class Drawer(ChakraComponent): size: Var[str] # A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** - use_intert: Var[bool] + use_inert: Var[bool] # Variant of drawer variant: Var[str] diff --git a/pynecone/components/overlay/menu.py b/pynecone/components/overlay/menu.py index 90daa70a3..848d5e7d4 100644 --- a/pynecone/components/overlay/menu.py +++ b/pynecone/components/overlay/menu.py @@ -29,7 +29,7 @@ class Menu(ChakraComponent): # If by default the menu is open. default_is_open: Var[bool] - # If rtl, poper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl") + # If rtl, popper placement positions will be flipped i.e. 'top-right' will become 'top-left' and vice-verse ("ltr" | "rtl") direction: Var[str] # If true, the popper will change its placement and flip when it's about to overflow its boundary area. diff --git a/pynecone/components/overlay/modal.py b/pynecone/components/overlay/modal.py index b80d04b60..2e206b0c3 100644 --- a/pynecone/components/overlay/modal.py +++ b/pynecone/components/overlay/modal.py @@ -48,7 +48,7 @@ class Modal(ChakraComponent): size: Var[str] # A11y: If true, the siblings of the modal will have `aria-hidden` set to true so that screen readers can only see the modal. This is commonly known as making the other elements **inert** - use_intert: Var[bool] + use_inert: Var[bool] @classmethod def get_triggers(cls) -> Set[str]: diff --git a/pynecone/components/overlay/tooltip.py b/pynecone/components/overlay/tooltip.py index 32729b58a..07cd15441 100644 --- a/pynecone/components/overlay/tooltip.py +++ b/pynecone/components/overlay/tooltip.py @@ -44,7 +44,7 @@ class Tooltip(ChakraComponent): # If true, the tooltip will show an arrow tip has_arrow: Var[bool] - # If true, th etooltip with be disabled. + # If true, the tooltip with be disabled. is_disabled: Var[bool] # If true, the tooltip will be open. diff --git a/pynecone/constants.py b/pynecone/constants.py index 579e88686..2aaacd19b 100644 --- a/pynecone/constants.py +++ b/pynecone/constants.py @@ -212,11 +212,11 @@ class RouteRegex(SimpleNamespace): """Regex used for extracting route args in route.""" ARG = re.compile(r"\[(?!\.)([^\[\]]+)\]") - # group return the catchall pattern (i.e "[[..slug]]") + # group return the catchall pattern (i.e. "[[..slug]]") CATCHALL = re.compile(r"(\[?\[\.{3}(?![0-9]).*\]?\])") - # group return the argname (i.e "slug") + # group return the arg name (i.e. "slug") STRICT_CATCHALL = re.compile(r"\[\.{3}([a-zA-Z_][\w]*)\]") - # group return the argname (i.e "slug") + # group return the arg name (i.e. "slug") OPT_CATCHALL = re.compile(r"\[\[\.{3}([a-zA-Z_][\w]*)\]\]") diff --git a/pynecone/middleware/middleware.py b/pynecone/middleware/middleware.py index fbc0dc103..94fbc0cd4 100644 --- a/pynecone/middleware/middleware.py +++ b/pynecone/middleware/middleware.py @@ -1,4 +1,4 @@ -"""Base Pynecone middelware.""" +"""Base Pynecone middleware.""" from __future__ import annotations from abc import ABC