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