-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
included missing init to the causal exceptions (#212)
* included missing init * including missing type * fix lint * Included return type * exceptions.py: Fixed exceptions typing. * updating changelog and version * fix docstring * including docstring updates * fix failing test Co-authored-by: Giulio Santo <[email protected]>
- Loading branch information
1 parent
ac66293
commit 866927a
Showing
6 changed files
with
31 additions
and
16 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
Empty file.
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,17 +1,31 @@ | ||
from typing import Any, Dict, List | ||
|
||
|
||
class MultipleTreatmentsError(Exception): | ||
def __init__(self, msg="Data contains multiple treatments.", *args, **kwargs): | ||
def __init__( | ||
self, | ||
msg: str = "Data contains multiple treatments.", | ||
*args: List[Any], | ||
**kwargs: Dict[str, Any] | ||
) -> None: | ||
super().__init__(msg, *args, **kwargs) | ||
|
||
|
||
class MissingControlError(Exception): | ||
def __init__( | ||
self, msg="Data does not contain the specified control.", *args, **kwargs | ||
): | ||
self, | ||
msg: str = "Data does not contain the specified control.", | ||
*args: List[Any], | ||
**kwargs: Dict[str, Any] | ||
) -> None: | ||
super().__init__(msg, *args, **kwargs) | ||
|
||
|
||
class MissingTreatmentError(Exception): | ||
def __init__( | ||
self, msg="Data does not contain the specified treatment.", *args, **kwargs | ||
): | ||
self, | ||
msg: str = "Data does not contain the specified treatment.", | ||
*args: List[Any], | ||
**kwargs: Dict[str, Any] | ||
) -> None: | ||
super().__init__(msg, *args, **kwargs) |
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 +1 @@ | ||
2.2.0 | ||
2.2.1 |
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