-
Notifications
You must be signed in to change notification settings - Fork 280
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 #4659 from neutrinoceros/drop_cp38
DEP: drop support for CPython 3.8
- Loading branch information
Showing
83 changed files
with
317 additions
and
435 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
from typing import List, Optional, Tuple, Union | ||
from typing import Optional, Union | ||
|
||
import unyt as un | ||
from numpy import ndarray | ||
|
||
FieldDescT = Tuple[str, Tuple[str, List[str], Optional[str]]] | ||
KnownFieldsT = Tuple[FieldDescT, ...] | ||
FieldDescT = tuple[str, tuple[str, list[str], Optional[str]]] | ||
KnownFieldsT = tuple[FieldDescT, ...] | ||
|
||
ParticleType = str | ||
FieldType = str | ||
FieldName = str | ||
FieldKey = Tuple[FieldType, FieldName] | ||
FieldKey = tuple[FieldType, FieldName] | ||
ImplicitFieldKey = FieldName | ||
AnyFieldKey = Union[FieldKey, ImplicitFieldKey] | ||
DomainDimensions = Union[Tuple[int, ...], List[int], ndarray] | ||
DomainDimensions = Union[tuple[int, ...], list[int], ndarray] | ||
|
||
ParticleCoordinateTuple = Tuple[ | ||
ParticleCoordinateTuple = tuple[ | ||
str, # particle type | ||
Tuple[ndarray, ndarray, ndarray], # xyz | ||
tuple[ndarray, ndarray, ndarray], # xyz | ||
Union[float, ndarray], # hsml | ||
] | ||
|
||
# Geometry specific types | ||
AxisName = str | ||
AxisOrder = Tuple[AxisName, AxisName, AxisName] | ||
AxisOrder = tuple[AxisName, AxisName, AxisName] | ||
|
||
# types that can be converted to un.Unit | ||
Unit = Union[un.Unit, str] | ||
|
||
# types that can be converted to un.unyt_quantity | ||
Quantity = Union[un.unyt_quantity, Tuple[float, Unit]] | ||
Quantity = Union[un.unyt_quantity, tuple[float, Unit]] |
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
Oops, something went wrong.