From 29ef6690e5ae0433821995c89ae682ad0fa7f80d Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 21 May 2025 22:14:05 +0200 Subject: test_atlocation.py: mypy/1.15 now understands those literals --- tests/test_atlocation.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/test_atlocation.py b/tests/test_atlocation.py index 5d7286a..b107975 100644 --- a/tests/test_atlocation.py +++ b/tests/test_atlocation.py @@ -95,13 +95,8 @@ class AtLocationTest(unittest.TestCase): if filetype == "symlink" and loctype != "emptypath": follow_symlinks_values.append(False) for follow_symlinks in follow_symlinks_values: - # Mypy fails to see that loctype and filetype really are - # literals rather than arbitrary strings. atlocctx = self.create( - loctype, # type: ignore[arg-type] - filetype, # type: ignore[arg-type] - "X", - follow_symlinks, + loctype, filetype, "X", follow_symlinks ) yield (filetype, atlocctx) -- cgit v1.2.3