Skip to content

Commit

Permalink
Remove dependency on python3.11+ StrEnum from the test
Browse files Browse the repository at this point in the history
  • Loading branch information
falekseev-pinely committed Mar 19, 2024
1 parent 690a461 commit 26cc7aa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,14 @@ def test_issue_91():


def test_issue_98():
from enum import StrEnum
class A(str):
def __str__(self):
return 'custom str'

class A(StrEnum):
a = 'a'
def __repr__(self):
return 'custom repr'

def foo(a=A.a):
def foo(a=A()):
pass

@wraps(foo)
Expand Down

0 comments on commit 26cc7aa

Please sign in to comment.