gh-132396: Resolve 'redefinition of unused name' errors in `Lib/test/` (#132397)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Bénédikt Tran 2025-04-18 19:14:54 +02:00 committed by GitHub
parent 4c3d187d9f
commit 1d5dc5f1c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 22 additions and 26 deletions

View file

@ -1352,7 +1352,7 @@ class TestSpecial(unittest.TestCase):
red = 1
green = 2
blue = 3
def red(self):
def red(self): # noqa: F811
return 'red'
#
with self.assertRaises(TypeError):
@ -1360,7 +1360,7 @@ class TestSpecial(unittest.TestCase):
@enum.property
def red(self):
return 'redder'
red = 1
red = 1 # noqa: F811
green = 2
blue = 3