from collections import namedtuple


TAG_DIMAGI_ONLY = 'Dimagi Only'


MobileFlag = namedtuple('MobileFlag', 'slug label tags')


SUPERUSER = MobileFlag(
    'superuser',
    'Enable superuser-only features',
    tags=(TAG_DIMAGI_ONLY,)
)

from collections import namedtuple


MobileFlag = namedtuple('MobileFlag', 'slug label')


SUPERUSER = MobileFlag(
    'superuser',
    'Enable superuser-only features'
)

Add tags for mobile flags when you need them
Add tags for mobile flags when you need them

  from collections import namedtuple
  
  
- TAG_DIMAGI_ONLY = 'Dimagi Only'
- 
- 
- MobileFlag = namedtuple('MobileFlag', 'slug label tags')
+ MobileFlag = namedtuple('MobileFlag', 'slug label')
  
  
  SUPERUSER = MobileFlag(
      'superuser',
-     'Enable superuser-only features',
+     'Enable superuser-only features'
-     tags=(TAG_DIMAGI_ONLY,)
  )
  
Add tags for mobile flags when you need them
## Code Before:
from collections import namedtuple


TAG_DIMAGI_ONLY = 'Dimagi Only'


MobileFlag = namedtuple('MobileFlag', 'slug label tags')


SUPERUSER = MobileFlag(
    'superuser',
    'Enable superuser-only features',
    tags=(TAG_DIMAGI_ONLY,)
)

## Instruction:
Add tags for mobile flags when you need them
## Code After:
from collections import namedtuple


MobileFlag = namedtuple('MobileFlag', 'slug label')


SUPERUSER = MobileFlag(
    'superuser',
    'Enable superuser-only features'
)
