Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
laspsandoval committed Jul 31, 2024
1 parent b021495 commit 04556cd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions imap_processing/quality_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from enum import IntFlag


class FlagNameMixin:
class FlagNameMixin(IntFlag):
"""Modifies flags for Python versions < 3.11."""

@property
def name(self) -> str:
"""
Expand Down Expand Up @@ -35,7 +37,7 @@ class ENAFlags(IntFlag):
BADSPIN = 2**2 # bit 2, Bad spin


class ImapUltraFlags(FlagNameMixin, IntFlag):
class ImapUltraFlags(FlagNameMixin):
"""IMAP Ultra flags."""

NONE = CommonFlags.NONE
Expand All @@ -45,7 +47,7 @@ class ImapUltraFlags(FlagNameMixin, IntFlag):
FLAG1 = 2**3 # bit 2


class ImapLoFlags(FlagNameMixin, IntFlag):
class ImapLoFlags(FlagNameMixin):
"""IMAP Lo flags."""

NONE = CommonFlags.NONE
Expand All @@ -55,7 +57,7 @@ class ImapLoFlags(FlagNameMixin, IntFlag):
FLAG2 = 2**3 # bit 2


class HitFlags(FlagNameMixin, IntFlag):
class HitFlags(FlagNameMixin,):
"""Hit flags."""

NONE = CommonFlags.NONE
Expand Down

0 comments on commit 04556cd

Please sign in to comment.