general: deprecate some old methods by hiding behind TYPE_CHECKING
This commit is contained in:
parent
79ce8e84ec
commit
d6786084ca
4 changed files with 17 additions and 8 deletions
|
@ -5,6 +5,7 @@ REQUIRES = [
|
|||
'git+https://github.com/karlicoss/pockexport',
|
||||
]
|
||||
from dataclasses import dataclass
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from .core import Paths
|
||||
|
||||
|
@ -61,5 +62,7 @@ def stats() -> Stats:
|
|||
|
||||
|
||||
# todo deprecate?
|
||||
def get_articles() -> Sequence[Article]:
|
||||
return list(articles())
|
||||
if not TYPE_CHECKING:
|
||||
# "deprecate" by hiding from mypy
|
||||
def get_articles() -> Sequence[Article]:
|
||||
return list(articles())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue