Skip to content

Commit

Permalink
[Tidy] Fix typo (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyielia authored and nadijagraca committed Aug 1, 2024
1 parent 282e55d commit 4d45ddd
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 15 deletions.
48 changes: 48 additions & 0 deletions vizro-ai/changelog.d/20240727_031259_lingyi_zhang_vizroai_code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Highlights ✨
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Removed
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Added
- A bullet item for the Added category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Changed
- A bullet item for the Changed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Deprecated
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Fixed
- A bullet item for the Fixed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
<!--
### Security
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1))
-->
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ._base import VizroAiComponentBase
from ._base import VizroAIComponentBase
from .chart_selection import GetChartSelection
from .code_validation import GetDebugger
from .custom_chart_wrap import GetCustomChart
Expand All @@ -7,7 +7,7 @@
from .visual_code import GetVisualCode

__all__ = [
"VizroAiComponentBase",
"VizroAIComponentBase",
"GetChartSelection",
"GetDataFrameCraft",
"GetVisualCode",
Expand Down
2 changes: 1 addition & 1 deletion vizro-ai/src/vizro_ai/plot/components/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from vizro_ai.chains import FunctionCallChain


class VizroAiComponentBase(ABC):
class VizroAIComponentBase(ABC):
"""Abstract Base Class that represents a blueprint for Vizro-AI components.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/chart_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

# initialization of schema manager, and register schema needed
Expand All @@ -39,7 +39,7 @@ class ChartSelection(BaseModel):


# 3. Define Component
class GetChartSelection(VizroAiComponentBase):
class GetChartSelection(VizroAIComponentBase):
"""Get Chart Types.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/code_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

# 1. Define schema
Expand All @@ -35,7 +35,7 @@ class CodeDebug(BaseModel):


# 3. Define Component
class GetDebugger(VizroAiComponentBase):
class GetDebugger(VizroAIComponentBase):
"""Get Visual code.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/custom_chart_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

logger = logging.getLogger(__name__)
Expand All @@ -38,7 +38,7 @@ class CustomChart(BaseModel):
"""


class GetCustomChart(VizroAiComponentBase):
class GetCustomChart(VizroAIComponentBase):
# TODO Explore if it is possible to create CustomChart without LLM
"""Get custom chart code.
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/dataframe_craft.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -42,7 +42,7 @@ class DataFrameCraft(BaseModel):


# 3. Define Component
class GetDataFrameCraft(VizroAiComponentBase):
class GetDataFrameCraft(VizroAIComponentBase):
"""Get dataframe code.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/explanation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

# 1. Define schema
Expand All @@ -35,7 +35,7 @@ class CodeExplanation(BaseModel):


# 3. Define Component
class GetCodeExplanation(VizroAiComponentBase):
class GetCodeExplanation(VizroAIComponentBase):
"""Get Explanation of a code snippet.
Attributes
Expand Down
4 changes: 2 additions & 2 deletions vizro-ai/src/vizro_ai/plot/components/visual_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from langchain_core.language_models.chat_models import BaseChatModel

from vizro_ai.chains._chain_utils import _log_time
from vizro_ai.plot.components import VizroAiComponentBase
from vizro_ai.plot.components import VizroAIComponentBase
from vizro_ai.plot.schema_manager import SchemaManager

# 1. Define schema
Expand All @@ -34,7 +34,7 @@ class VizroCode(BaseModel):


# 3. Define Component
class GetVisualCode(VizroAiComponentBase):
class GetVisualCode(VizroAIComponentBase):
"""Get Visual code.
Attributes
Expand Down

0 comments on commit 4d45ddd

Please sign in to comment.