-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace deprecated package with Python 3.13 deprecated decorator (…
…#537) Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
- Loading branch information
Showing
9 changed files
with
49 additions
and
25 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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2018-2023, Eduardo Rodrigues and Henry Schreiner. | ||
# | ||
# Distributed under the 3-clause BSD license, see accompanying file LICENSE | ||
# or https://github.com/scikit-hep/particle for details. | ||
|
||
|
||
from __future__ import annotations | ||
|
||
import sys | ||
|
||
if sys.version_info < (3, 8): | ||
from typing_extensions import Protocol, runtime_checkable | ||
else: | ||
from typing import Protocol, runtime_checkable | ||
|
||
if sys.version_info < (3, 9): | ||
from importlib_resources.abc import Traversable | ||
elif sys.version_info < (3, 11): | ||
from importlib.abc import Traversable | ||
else: | ||
from importlib.resources.abc import Traversable | ||
|
||
|
||
__all__ = ( | ||
"Protocol", | ||
"runtime_checkable", | ||
"Traversable", | ||
) |
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,10 @@ | ||
from __future__ import annotations | ||
|
||
import sys | ||
|
||
if sys.version_info < (3, 13): | ||
from typing_extensions import deprecated | ||
else: | ||
from warnings import deprecated | ||
|
||
__all__ = ["deprecated"] |
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