Skip to content

Commit e11f4ea

Browse files
committed
Upgrade to mypy 1.0
1 parent e0f1acb commit e11f4ea

File tree

3 files changed

+33
-29
lines changed

3 files changed

+33
-29
lines changed

poetry.lock

Lines changed: 30 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pytest = "^7.1.1"
2525
pytest-cov = "^4.0.0"
2626
black = "^22.3.0"
2727
pyflakes = "^2.4"
28-
mypy = "==0.960"
28+
mypy = "^1.0"
2929
pyinstaller = "^5.6"
3030
isort = "^5.10.1"
3131
types-requests = "^2.26.1"

snooty/gizaparser/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def parse(
201201
self, path: Path, text: Optional[str] = None
202202
) -> Tuple[Sequence[_I], str, List[Diagnostic]]:
203203
"""Abstract method to parse Giza nodes out of YAML source text."""
204-
pass
204+
raise NotImplementedError()
205205

206206
def to_pages(
207207
self,
@@ -210,7 +210,7 @@ def to_pages(
210210
data: Sequence[_I],
211211
) -> List[Page]:
212212
"""Abstract method to generate pages from a given set of Giza nodes."""
213-
pass
213+
raise NotImplementedError()
214214

215215
def add(self, path: Path, text: str, elements: Sequence[_I]) -> None:
216216
"""Add a file with one or more Giza nodes."""

0 commit comments

Comments
 (0)