Skip to content

Commit 279e8cc

Browse files
committed
Fix functional tests
1 parent 42b289d commit 279e8cc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/functional/ext/mccabe/mccabe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ def nested_match_case(data): # [too-complex]
327327
match data:
328328
case {"type": "user", "data": user_data}:
329329
match user_data: # Nested match adds complexity
330-
case {"name": str(name)}:
330+
case {"name": str() as name}:
331331
return f"User: {name}"
332-
case {"id": int(user_id)}:
332+
case {"id": int() as user_id}:
333333
return f"User ID: {user_id}"
334334
case _:
335335
return "Unknown user format"

tests/functional/p/pattern_matching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# pylint: disable=missing-docstring,invalid-name,too-few-public-methods
2+
# pylint: disable=match-class-positional-attributes
23

34
class Point2D:
45
__match_args__ = ("x", "y")

0 commit comments

Comments
 (0)