Skip to content

Commit

Permalink
refactor: add types
Browse files Browse the repository at this point in the history
  • Loading branch information
dancergraham committed Nov 25, 2024
1 parent af0e238 commit dbccc9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waffle/management/commands/waffle_flag.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from django.core.management.base import BaseCommand, CommandError, CommandParser
from django.db.models import Q

from build.lib.waffle.models import AbstractBaseFlag
from waffle import get_waffle_flag_model

UserModel = get_user_model()
Expand Down Expand Up @@ -166,7 +167,7 @@ def handle(self, *args: Any, **options: Any) -> None:

flag.save()

def log_flag_to_stdout(self, flag):
def log_flag_to_stdout(self, flag: AbstractBaseFlag) -> None:
self.stdout.write(f'NAME: {flag.name}')
self.stdout.write(f'SUPERUSERS: {flag.superusers}')
self.stdout.write(f'EVERYONE: {flag.everyone}')
Expand Down

0 comments on commit dbccc9a

Please sign in to comment.