Coverage for src/prisma/_typing.py: 75%

6 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2024-04-28 15:17 +0000

1from __future__ import annotations 

2 

3from ._compat import get_origin 

4 

5 

6def is_list_type(typ: type | None) -> bool: 

7 if typ is None: 7 ↛ 8line 7 didn't jump to line 8, because the condition on line 7 was never true

8 return False 

9 

10 return (get_origin(typ) or typ) == list