Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /trisongz_lazyops /tests /_basic /test_strenums.py
| from lazyops.types.common import StrEnum, UpperStrEnum | |
| class New(StrEnum): | |
| """ | |
| The job status | |
| """ | |
| NEW = 'new' | |
| START = 'start' | |
| STAGING = 'staging' | |
| FINAL = 'final' | |
| def __contains__(self, other) -> bool: | |
| __key = other.lower() if isinstance(other, str) else other | |
| print(__key) | |
| return super().__contains__(__key) | |
| # this returns false | |
| x = ( | |
| 'NEW' in [ | |
| New.NEW, | |
| ] | |
| ) | |
| print(x) | |
| # This returns True | |
| print('new' in New.NEW) | |
Xet Storage Details
- Size:
- 488 Bytes
- Xet hash:
- db9c8616f1b7176b1690fbf2a8d6c096c4c3f80d57924f27c2fd28b7bacf333c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.