mirror of https://github.com/Nonannet/pyladoc.git
removed typing.Self for better backwards compatibility
This commit is contained in:
parent
111a98b6db
commit
4efffdceca
|
@ -1,4 +1,4 @@
|
|||
from typing import Callable, Generator, Self, Literal, TYPE_CHECKING
|
||||
from typing import Callable, Generator, Literal, TYPE_CHECKING
|
||||
import html
|
||||
import markdown
|
||||
from base64 import b64encode
|
||||
|
@ -307,7 +307,7 @@ class DocumentWriter():
|
|||
self._fields[name] = new_dwr
|
||||
return new_dwr
|
||||
|
||||
def add_document(self, doc: Self) -> None:
|
||||
def add_document(self, doc: 'DocumentWriter') -> None:
|
||||
self._doc += doc._doc
|
||||
|
||||
def add_diagram(self, fig: Figure, caption: str = '', ref_id: str = '',
|
||||
|
|
Loading…
Reference in New Issue