-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: upgrade dataclassy to v0.10.1 * refactor: normalize abstract dataclass usage * fix: forgot to implement abstractmethod (now visible with previous) * fix: remove unused Web3 subclassing NOTE: Fixes issue with MRO introduced in dataclassy v0.10.1 * fix: remove unnecessary abstractmethod (visible because of abc fix) * fix: incorrect `__contains__` use for `AccountContainerAPI` * feat: add `remove`/`__delitem__` to `AccountContainerAPI`
- Loading branch information
Showing
10 changed files
with
63 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from abc import ABCMeta, abstractmethod | ||
from functools import partial | ||
|
||
from dataclassy import dataclass | ||
from dataclassy.dataclass import DataClassMeta | ||
|
||
|
||
class AbstractDataClassMeta(DataClassMeta, ABCMeta): | ||
pass | ||
|
||
|
||
abstractdataclass = partial(dataclass, meta=AbstractDataClassMeta) | ||
|
||
__all__ = [ | ||
"abstractdataclass", | ||
"abstractmethod", | ||
"AbstractDataClassMeta", | ||
"dataclass", | ||
] |
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
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
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