Coverage for python / lsst / images / utils.py: 70%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-02 07:17 -0800

1# This file is part of lsst-images. 

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 

12from __future__ import annotations 

13 

14__all__ = ("is_none",) 

15 

16import operator 

17import sys 

18 

19if sys.version_info >= (3, 14, 0): 19 ↛ 20line 19 didn't jump to line 20 because the condition on line 19 was never true

20 is_none = operator.is_none # type: ignore[attr-defined] 

21else: 

22 

23 def is_none(x: object) -> bool: 

24 """Test whether an object is None.""" 

25 return x is None