We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4b8fb commit 2fd2a65Copy full SHA for 2fd2a65
src/django_enum/utils.py
@@ -250,6 +250,8 @@ def decompose(flags: Optional[F]) -> List[F]:
250
if not flags:
251
return []
252
if sys.version_info < (3, 11):
253
- return [flg for flg in type(flags) if flg in flags and flg is not flags(0)]
+ return [
254
+ flg for flg in type(flags) if flg in flags and flg is not type(flags)(0)
255
+ ]
256
else:
257
return list(flags) # type: ignore[arg-type]
0 commit comments