Coverage for python/lsst/utils/_forwarded.py: 75%

Shortcuts on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

8 statements  

1# This file is part of utils. 

2# 

3# Developed for the LSST Data Management System. 

4# This product includes software developed by the LSST Project 

5# (https://www.lsst.org). 

6# See the COPYRIGHT file at the top-level directory of this distribution 

7# for details of code ownership. 

8# 

9# Use of this source code is governed by a 3-clause BSD-style 

10# license that can be found in the LICENSE file. 

11 

12__all__ = ("demangleType",) 

13 

14"""Functions that have been moved to the cpputils package and should no 

15longer be used from this package.""" 

16 

17from deprecated.sphinx import deprecated 

18 

19_REASON = "This function has been moved to the cpputils package. Will be removed after v25." 

20_VERSION_REMOVED = "v23" 

21 

22 

23@deprecated(reason=_REASON, version=_VERSION_REMOVED, category=FutureWarning) 

24def demangleType(type_name: str) -> str: 

25 """Demangle a C++ type string.""" 

26 import lsst.cpputils 

27 

28 return lsst.cpputils.demangleType(type_name)