Skip to content

Commit

Permalink
Fix annotation of Heading
Browse files Browse the repository at this point in the history
  • Loading branch information
srittau committed Aug 21, 2018
1 parent a69cf15 commit 59e843b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ API Additions

* Make ``ElementBase`` public.
* Add ``GenValue`` and ``GenValueGenerator`` type aliases.
* Fix annotation of ``Heading``.

News in version 1.1.0
=====================
Expand Down
7 changes: 3 additions & 4 deletions htmlgen/structure.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Union, Generator

from htmlgen.element import Element
from .element import Element
from .generator import GenValue


class Section(Element):
Expand All @@ -22,4 +21,4 @@ class Footer(Element):
def __init__(self) -> None: ...

class Heading(Element):
def __init__(self, level: int = ..., *content: Union[str, bytes, Generator]) -> None: ...
def __init__(self, level: int = ..., *content: GenValue) -> None: ...

0 comments on commit 59e843b

Please sign in to comment.