@@ -612,7 +612,7 @@ def test_load_json(tmpdir):
612612 assert tmp_file .load_json () == {"key" : "value" , "int" : 1234 , "float" : 12.34 }
613613
614614
615- def test_in_directory (tmp_pathplus ):
615+ def test_in_directory (tmp_pathplus : PathPlus ):
616616 cwd = os .getcwd ()
617617
618618 with in_directory (tmp_pathplus ):
@@ -638,7 +638,7 @@ def test_in_directory(tmp_pathplus):
638638 ("foo/bar/baz/foo.yml" , "foo/bar/baz" ),
639639 ]
640640 )
641- def test_traverse_to_file (tmp_pathplus , location , expected ):
641+ def test_traverse_to_file (tmp_pathplus : PathPlus , location : str , expected : str ):
642642 (tmp_pathplus / location ).parent .maybe_make (parents = True )
643643 (tmp_pathplus / location ).touch ()
644644 assert traverse_to_file (tmp_pathplus / "foo" / "bar" / "baz" , "foo.yml" ) == tmp_pathplus / expected
@@ -647,7 +647,7 @@ def test_traverse_to_file(tmp_pathplus, location, expected):
647647# TODO: height
648648
649649
650- def test_traverse_to_file_errors (tmp_pathplus ):
650+ def test_traverse_to_file_errors (tmp_pathplus : PathPlus ):
651651 (tmp_pathplus / "foo/bar/baz" ).parent .maybe_make (parents = True )
652652 if os .sep == '/' :
653653 with pytest .raises (FileNotFoundError , match = "'foo.yml' not found in .*/foo/bar/baz" ):
@@ -702,7 +702,7 @@ def test_iterchildren_match(data_regression: DataRegressionFixture):
702702 data_regression .check (child_paths )
703703
704704
705- def test_iterchildren_no_exclusions (tmp_pathplus ):
705+ def test_iterchildren_no_exclusions (tmp_pathplus : PathPlus ):
706706 (tmp_pathplus / ".git" ).mkdir ()
707707 (tmp_pathplus / "venv" ).mkdir ()
708708 (tmp_pathplus / ".venv" ).mkdir ()
@@ -800,5 +800,5 @@ def test_iterchildren_no_exclusions(tmp_pathplus):
800800 ("domdf_python_tools/**/*.py" , "domdf_python_tools/domdf_python_tools/pagesizes/units.py" , True ),
801801 ]
802802 )
803- def test_globpath (pattern , filename , match : bool ):
803+ def test_globpath (pattern : str , filename : str , match : bool ):
804804 assert matchglob (filename , pattern ) is match
0 commit comments