-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Secrus/restore-project
Refresh project
- Loading branch information
Showing
22 changed files
with
485 additions
and
572 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Crashtest | ||
|
||
[](https://github.com/sdispater/crashtest/actions/workflows/tests.yml) | ||
[](https://pypi.org/project/crashtest/) | ||
|
||
Crashtest is a Python library that makes exceptions handling and inspection easier. |
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,4 @@ | ||
from __future__ import annotations | ||
|
||
|
||
__version__ = "0.3.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
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,11 +1,15 @@ | ||
from typing import List | ||
from __future__ import annotations | ||
|
||
from .solution import Solution | ||
from typing import TYPE_CHECKING | ||
|
||
|
||
if TYPE_CHECKING: | ||
from crashtest.contracts.solution import Solution | ||
|
||
|
||
class HasSolutionsForException: | ||
def can_solve(self, exception: Exception) -> bool: | ||
raise NotImplementedError() | ||
|
||
def get_solutions(self, exception: Exception) -> List[Solution]: | ||
def get_solutions(self, exception: Exception) -> list[Solution]: | ||
raise NotImplementedError() |
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,19 +1,22 @@ | ||
from typing import List | ||
from typing import Type | ||
from __future__ import annotations | ||
|
||
from .solution import Solution | ||
from typing import TYPE_CHECKING | ||
|
||
|
||
if TYPE_CHECKING: | ||
from crashtest.contracts.solution import Solution | ||
|
||
|
||
class SolutionProviderRepository: | ||
def register_solution_provider( | ||
self, solution_provider_class: Type | ||
) -> "SolutionProviderRepository": | ||
self, solution_provider_class: type | ||
) -> SolutionProviderRepository: | ||
raise NotImplementedError() | ||
|
||
def register_solution_providers( | ||
self, solution_provider_classes: List[Type] | ||
) -> "SolutionProviderRepository": | ||
self, solution_provider_classes: list[type] | ||
) -> SolutionProviderRepository: | ||
raise NotImplementedError() | ||
|
||
def get_solutions_for_exception(self, exception: Exception) -> List[Solution]: | ||
def get_solutions_for_exception(self, exception: Exception) -> list[Solution]: | ||
raise NotImplementedError() |
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.