Skip to content

Commit

Permalink
Remove the deprecated Long trait type and its variants (#1701)
Browse files Browse the repository at this point in the history
This PR removes the deprecated Long trait type and its variants: CLong, BaseLong and BaseCLong. Int, CInt, BaseInt and BaseCInt are drop-in replacements.
  • Loading branch information
mdickinson committed Aug 10, 2022
1 parent c5cfdde commit e99ab5a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 80 deletions.
8 changes: 0 additions & 8 deletions docs/source/traits_api_reference/trait_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,6 @@ and may be removed in a future version of Traits.

.. autodata:: CUnicode

.. autodata:: BaseLong

.. autodata:: Long

.. autodata:: BaseCLong

.. autodata:: CLong

.. autodata:: false

.. autodata:: true
Expand Down
4 changes: 0 additions & 4 deletions traits-stubs/traits-stubs/api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ from .trait_types import (
Unicode as Unicode,
BaseCUnicode as BaseCUnicode,
CUnicode as CUnicode,
BaseLong as BaseLong,
Long as Long,
BaseCLong as BaseCLong,
CLong as CLong,
false as false,
true as true,
undefined as undefined,
Expand Down
16 changes: 0 additions & 16 deletions traits-stubs/traits-stubs/trait_types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -691,22 +691,6 @@ class CUnicode(CStr):
...


class BaseLong(BaseInt):
...


class Long(Int):
...


class BaseCLong(BaseCInt):
...


class CLong(CInt):
...


class false(Bool):
...

Expand Down
4 changes: 0 additions & 4 deletions traits/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@
Unicode,
BaseCUnicode,
CUnicode,
BaseLong,
Long,
BaseCLong,
CLong,
false,
true,
undefined,
Expand Down
30 changes: 0 additions & 30 deletions traits/tests/test_long_traits.py

This file was deleted.

18 changes: 0 additions & 18 deletions traits/trait_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4791,24 +4791,6 @@ def create_editor(self):
#: This is an alias for :class:`CStr`. Use ``CStr`` instead.
CUnicode = CStr

#: A trait whose value must be an integer. This is an alias for
#: :class:`BaseInt`. Use ``BaseInt`` instead.
BaseLong = BaseInt

#: A trait whose value must be an integer, using a C-level fast validator.
#: This is an alias for :class:`Int`. Use ``Int`` instead.
Long = Int

#: A trait whose value must be an integer and which supports coercions
#: of non-integer values to integer. This is an alias for
#: :class:`BaseCInt`. Use ``BaseCInt`` instead.
BaseCLong = BaseCInt

#: A trait whose value must be an integer and which supports coercions
#: of non-integer values to integer, using a C-level fast validator.
#: This is an alias for :class:`CInt`. Use ``CInt`` instead.
CLong = CInt

#: Synonym for Bool; default value is ``False``. This trait type is
#: deprecated. Use ``Bool(False)`` or ``Bool()`` instead.
false = Bool
Expand Down

0 comments on commit e99ab5a

Please sign in to comment.