Coverage for pygeodesy/deprecated/consterns.py: 100%
14 statements
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-25 13:15 -0400
« prev ^ index » next coverage.py v7.6.1, created at 2025-04-25 13:15 -0400
2# -*- coding: utf-8 -*-
4u'''DEPRECATED constants and interns kept for backward compatibility.
5'''
7from pygeodesy.constants import EPS_2, MANT_DIG, _1_0
8from pygeodesy.lazily import _ALL_DEPRECATED
9from pygeodesy.units import Float, Int, Str
11__all__ = _ALL_DEPRECATED.deprecated_consterns
12__version__ = '25.04.09'
15class _Deprecated_Float(Float):
16 '''DEPRECATED on 2023.09.12, I{don't use}.'''
17 pass
20class _Deprecated_Int(Int):
21 '''DEPRECATED on 2023.09.12, I{don't use}.'''
22 pass
25class _Deprecated_Str(Str):
26 '''DEPRECATED on 2023.09.12, I{don't use}.'''
27 pass
30EPS1_2 = _Deprecated_Float(EPS1_2=_1_0 - EPS_2)
31MANTIS = _Deprecated_Int(MANTIS=MANT_DIG)
32OK = _Deprecated_Str(OK='OK')
34# **) MIT License
35#
36# Copyright (C) 2018-2025 -- mrJean1 at Gmail -- All Rights Reserved.
37#
38# Permission is hereby granted, free of charge, to any person obtaining a
39# copy of this software and associated documentation files (the "Software"),
40# to deal in the Software without restriction, including without limitation
41# the rights to use, copy, modify, merge, publish, distribute, sublicense,
42# and/or sell copies of the Software, and to permit persons to whom the
43# Software is furnished to do so, subject to the following conditions:
44#
45# The above copyright notice and this permission notice shall be included
46# in all copies or substantial portions of the Software.
47#
48# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
49# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
51# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
52# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
53# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
54# OTHER DEALINGS IN THE SOFTWARE.