-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: remove deprecations for 1.4.0 release (#2688)
* feat!: drop `typestr` argument * feat!: drop `Form.type_from_behavior` * feat!: drop `ak.typetracer.empty_if_typetracer` * feat!: drop `UnionArray.simplified`'s `merge` argument * feat!: drop string and categorical behaviors * Revert "feat!: drop string and categorical behaviors" This reverts commit 9218a77. This is required because it these classes are likely serialised in some behavior dictionaries * fix: catch broken tests * feat!: don't import unused behaviors * test: drop reference to unused behavior * feat: replace behaviors with pass-throughs
- Loading branch information
Showing
18 changed files
with
41 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE | ||
from awkward._errors import deprecate | ||
from awkward.highlevel import Array | ||
|
||
|
||
class CategoricalBehavior(Array): | ||
__name__ = "Array" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
deprecate( | ||
f"{type(self).__name__} is deprecated: categorical types are now considered a built-in feature " | ||
f"provided by Awkward Array, rather than an extension.", | ||
version="2.4.0", | ||
) | ||
CategoricalBehavior = Array |
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,55 +1,7 @@ | ||
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE | ||
from awkward._errors import deprecate | ||
from awkward.highlevel import Array | ||
|
||
|
||
class ByteBehavior(Array): | ||
__name__ = "Array" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
deprecate( | ||
f"{type(self).__name__} is deprecated: string types are now considered a built-in feature " | ||
f"provided by Awkward Array, rather than an extension.", | ||
version="2.4.0", | ||
) | ||
|
||
|
||
class CharBehavior(Array): | ||
__name__ = "Array" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
deprecate( | ||
f"{type(self).__name__} is deprecated: string types are now considered a built-in feature " | ||
f"provided by Awkward Array, rather than an extension.", | ||
version="2.4.0", | ||
) | ||
|
||
|
||
class ByteStringBehavior(Array): | ||
__name__ = "Array" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
deprecate( | ||
f"{type(self).__name__} is deprecated: string types are now considered a built-in feature " | ||
f"provided by Awkward Array, rather than an extension.", | ||
version="2.4.0", | ||
) | ||
|
||
|
||
class StringBehavior(Array): | ||
__name__ = "Array" | ||
|
||
def __init__(self, *args, **kwargs): | ||
super().__init__(*args, **kwargs) | ||
|
||
deprecate( | ||
f"{type(self).__name__} is deprecated: string types are now considered a built-in feature " | ||
f"provided by Awkward Array, rather than an extension.", | ||
version="2.4.0", | ||
) | ||
ByteBehavior = Array | ||
CharBehavior = Array | ||
ByteStringBehavior = Array | ||
StringBehavior = Array |
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.