From a2e16525af54ded0c81ddca11ca5a15c393741ac Mon Sep 17 00:00:00 2001 From: ChogirmaliYigit Date: Sat, 2 Mar 2024 20:20:45 +0500 Subject: [PATCH] fix: typo :pencil2: --- .github/workflows/tests.yml | 2 +- markupify/tags.py | 13 +++++++------ pyproject.toml | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b467a5..0c86f50 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.11"] poetry-version: ["1.8.1"] os: [ubuntu-latest, macos-latest, windows-latest] diff --git a/markupify/tags.py b/markupify/tags.py index 91ced05..12bf7f4 100644 --- a/markupify/tags.py +++ b/markupify/tags.py @@ -919,14 +919,15 @@ class Head(Element): """ Represents the HTML element. """ - def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props): + def __init__(self, *args: Union[str, 'Element'], **props): """ - Initialize the Head element. + Initialize the head element. Args: tag_content (Optional[Union[str, 'Element']]): The content of the tag. **props: Additional properties for the tag. """ + tag_content = "".join(args) super().__init__(tag_name="head", tag_content=tag_content, **props) @@ -992,7 +993,7 @@ class I(Element): """ def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props): """ - Initialize the I element. + Initialize the i element. Args: tag_content (Optional[Union[str, 'Element']]): The content of the tag. @@ -1699,7 +1700,7 @@ class Sub(Element): """ def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props): """ - Initialize the Sub element. + Initialize the element. Args: tag_content (Optional[Union[str, 'Element']]): The content of the tag. @@ -1864,7 +1865,7 @@ class Th(Element): """ def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props): """ - Initialize the Th element. + Initialize the th element. Args: tag_content (Optional[Union[str, 'Element']]): The content of the tag. @@ -1924,7 +1925,7 @@ class Tr(Element): """ def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props): """ - Initialize the Tr element. + Initialize the tr element. Args: tag_content (Optional[Union[str, 'Element']]): The content of the tag. diff --git a/pyproject.toml b/pyproject.toml index 0e50a17..6b6c9ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 79 -target-version = ['py39', 'py310', 'py311'] +target-version = ['py311'] [tool.isort] profile = "black" @@ -21,7 +21,7 @@ readme = "README.md" keywords = ["html", "python", "html-generator", "markup"] [tool.poetry.dependencies] -python = "^3.9" +python = "^3.11" beautifulsoup4 = "^4.12.3" [tool.poetry.group.dev.dependencies]