Skip to content

Commit

Permalink
chore(flags): Update type hints for newer mypy versions (#114)
Browse files Browse the repository at this point in the history
* chore(flags): Update type hints for newer mypy versions

* black
  • Loading branch information
neilkakkar authored Jan 30, 2024
1 parent 8554b51 commit efb0ccf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.3.4 - 2024-01-30

1. Update type hints for module variables to work with newer versions of mypy

## 3.3.3 - 2024-01-26

1. Remove new relative date operators, combine into regular date operators
Expand Down
17 changes: 11 additions & 6 deletions posthog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
__version__ = VERSION

"""Settings."""
api_key = None # type: str
host = None # type: str
on_error = None # type: Callable
api_key = None # type: Optional[str]
host = None # type: Optional[str]
on_error = None # type: Optional[Callable]
debug = False # type: bool
send = True # type: bool
sync_mode = False # type: bool
disabled = False # type: bool
personal_api_key = None # type: str
project_api_key = None # type: str
personal_api_key = None # type: Optional[str]
project_api_key = None # type: Optional[str]
poll_interval = 30 # type: int
disable_geoip = True # type: bool

default_client = None
default_client = None # type: Optional[Client]


def capture(
Expand Down Expand Up @@ -405,6 +405,11 @@ def feature_flag_definitions():
return _proxy("feature_flag_definitions")


def load_feature_flags():
"""Load feature flag definitions from PostHog."""
return _proxy("load_feature_flags")


def page(*args, **kwargs):
"""Send a page call."""
_proxy("page", *args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion posthog/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "3.3.3"
VERSION = "3.3.4"

if __name__ == "__main__":
print(VERSION, end="") # noqa: T201

0 comments on commit efb0ccf

Please sign in to comment.