Coverage for src/paperap/models/mixins/models.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-03-22 16:02 -0400

1""" 

2 

3 

4 

5---------------------------------------------------------------------------- 

6 

7METADATA: 

8 

9File: models.py 

10 Project: paperap 

11Created: 2025-03-09 

12 Version: 0.0.9 

13Author: Jess Mann 

14Email: jess@jmann.me 

15 Copyright (c) 2025 Jess Mann 

16 

17---------------------------------------------------------------------------- 

18 

19LAST MODIFIED: 

20 

212025-03-09 By Jess Mann 

22 

23""" 

24 

25from __future__ import annotations 

26 

27from pydantic import Field 

28 

29from paperap.const import MatchingAlgorithmType 

30 

31 

32class MatcherMixin: 

33 match: str | None = None 

34 matching_algorithm: MatchingAlgorithmType | None = Field(default=None, ge=MatchingAlgorithmType.UNKNOWN, le=7) 

35 is_insensitive: bool | None = None