Commit 0c5f073
committed
test(packagesettings): add missing type annotations
Add type annotations to all test function parameters to comply with
repository code quality standards. Fix type checker errors in dictionary
instantiation tests by using model_validate() instead of direct
constructor calls.
Changes:
- Add pathlib.Path annotation to testdata_path parameter
- Remove unused tmp_path parameter from test function
- Replace PackageSettings(**dict) with model_validate(dict) to avoid
type: ignore directives
Fixes #851
Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>1 parent 90ae492 commit 0c5f073
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
650 | | - | |
| 649 | + | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
665 | | - | |
| 664 | + | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
0 commit comments