-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* start checking mypy and work on some hints (cherry picked from commit 60e7433) * remove unused imports (cherry picked from commit 9741f9c) * some more mypy (cherry picked from commit 65b0fb8) * more (cherry picked from commit f2a0be4) * fixup * little * catch up on test hints * more * fixup * more * py.typed * ignores... * stuff * just ignore for now * note * tidy * fix * fix * flake8 * typing_externsions.TypeGuard * Apply suggestions from code review Co-authored-by: Richard Kiss <him@richardkiss.com> * add newly needed ignore * fix NestedTupleOfBytes * `CLVMObjectLike` -> `CLVMStorage` * tidy hinting in `core_ops` * unused assignment in tests * typing_extensions.Never * tidy * tidy * more tidy * oops * update note * shift around * more * undo * tidy * tidy * tidy * prepare for more strict mypy * enable 'free' mypy constraints * no_implicit_reexport * some untyped generics * almost, but not quite * ToCLVMStorage * break circular import * touchup * future * less future * `SExp.to(Any)` * remove ignores * use `PythonReturnType` for as python return type * drop any * hmm * Revert "hmm" This reverts commit bfe9e84. * Revert "drop any" This reverts commit 1f3f89b. * Revert "use `PythonReturnType` for as python return type" This reverts commit f806e68. --------- Co-authored-by: Richard Kiss <him@richardkiss.com>
- Loading branch information
1 parent
960f8d1
commit 90a7495
Showing
23 changed files
with
639 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from clvm.SExp import SExp | ||
|
||
|
||
class EvalError(Exception): | ||
def __init__(self, message: str, sexp): | ||
def __init__(self, message: str, sexp: SExp) -> None: | ||
super().__init__(message) | ||
self._sexp = sexp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.