Skip to content

Commit

Permalink
fix: typo ✏️
Browse files Browse the repository at this point in the history
  • Loading branch information
ChogirmaliYigit committed Mar 2, 2024
1 parent 199c543 commit a2e1652
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
13 changes: 7 additions & 6 deletions markupify/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,14 +919,15 @@ class Head(Element):
"""
Represents the <head> 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 <head> tag.
**props: Additional properties for the <head> tag.
"""
tag_content = "".join(args)
super().__init__(tag_name="head", tag_content=tag_content, **props)


Expand Down Expand Up @@ -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 <i> tag.
Expand Down Expand Up @@ -1699,7 +1700,7 @@ class Sub(Element):
"""
def __init__(self, tag_content: Optional[Union[str, 'Element']] = "", **props):
"""
Initialize the Sub element.
Initialize the <sub> element.
Args:
tag_content (Optional[Union[str, 'Element']]): The content of the <sub> tag.
Expand Down Expand Up @@ -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 <th> tag.
Expand Down Expand Up @@ -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 <tr> tag.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 79
target-version = ['py39', 'py310', 'py311']
target-version = ['py311']

[tool.isort]
profile = "black"
Expand All @@ -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]
Expand Down

0 comments on commit a2e1652

Please sign in to comment.