Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configcatclient/configcatoptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ConfigCatOptions(object):

def __init__(self,
base_url=None,
polling_mode=PollingMode.auto_poll(),
polling_mode: PollingMode = PollingMode.auto_poll(),
config_cache=None,
proxies=None,
proxy_auth=None,
Expand Down
8 changes: 4 additions & 4 deletions configcatclient/configfetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@


class RedirectMode(IntEnum):
NoRedirect = 0,
ShouldRedirect = 1,
NoRedirect = 0
ShouldRedirect = 1
ForceRedirect = 2


class Status(IntEnum):
Fetched = 0,
NotModified = 1,
Fetched = 0
NotModified = 1
Failure = 2


Expand Down
4 changes: 2 additions & 2 deletions configcatclient/overridedatasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
class OverrideBehaviour(IntEnum):
# When evaluating values, the SDK will not use feature flags & settings from the ConfigCat CDN, but it will use
# all feature flags & settings that are loaded from local-override sources.
LocalOnly = 0,
LocalOnly = 0

# When evaluating values, the SDK will use all feature flags & settings that are downloaded from the ConfigCat CDN,
# plus all feature flags & settings that are loaded from local-override sources. If a feature flag or a setting is
# defined both in the fetched and the local-override source then the local-override version will take precedence.
LocalOverRemote = 1,
LocalOverRemote = 1

# When evaluating values, the SDK will use all feature flags & settings that are downloaded from the ConfigCat CDN,
# plus all feature flags & settings that are loaded from local-override sources. If a feature flag or a setting is
Expand Down
2 changes: 1 addition & 1 deletion configcatclient/pollingmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PollingMode(object):
__metaclass__ = ABCMeta

@abstractmethod
def identifier(self):
def identifier(self) -> str:
"""
:return: the identifier of polling mode. Used for analytical purposes in HTTP User-Agent headers.
"""
Expand Down