-
Notifications
You must be signed in to change notification settings - Fork 0
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 #13 from josek98:develop
Develop
- Loading branch information
Showing
17 changed files
with
726 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
markers = | ||
deprecated: mark test as deprecated | ||
addopts = | ||
-m "not deprecated" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import warnings | ||
|
||
|
||
def deprecation_warning(message): | ||
def decorator(func): | ||
def wrapper(*args, **kwargs): | ||
# Issue a deprecation warning with the provided message | ||
warnings.warn(message, category=DeprecationWarning, stacklevel=2) | ||
# Call the original function | ||
return func(*args, **kwargs) | ||
|
||
return wrapper | ||
|
||
return decorator | ||
|
||
|
||
def behavior_change_warning(message): | ||
def decorator(func): | ||
def wrapper(*args, **kwargs): | ||
# Issue a FutureWarning about the change in behavior | ||
warnings.warn(message, category=FutureWarning, stacklevel=2) | ||
# Call the original function | ||
return func(*args, **kwargs) | ||
|
||
return wrapper | ||
|
||
return decorator |
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,5 @@ | ||
from ._edge import * | ||
from ._graph import * | ||
from ._paths import * | ||
|
||
__all__ = [s for s in dir() if not s.startswith("_")] | ||
__all__ = [s for s in dir() if not s.startswith("_")] |
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.