Skip to content

Commit efb0ccf

Browse files
authored
chore(flags): Update type hints for newer mypy versions (#114)
* chore(flags): Update type hints for newer mypy versions * black
1 parent 8554b51 commit efb0ccf

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.3.4 - 2024-01-30
2+
3+
1. Update type hints for module variables to work with newer versions of mypy
4+
15
## 3.3.3 - 2024-01-26
26

37
1. Remove new relative date operators, combine into regular date operators

posthog/__init__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
__version__ = VERSION
88

99
"""Settings."""
10-
api_key = None # type: str
11-
host = None # type: str
12-
on_error = None # type: Callable
10+
api_key = None # type: Optional[str]
11+
host = None # type: Optional[str]
12+
on_error = None # type: Optional[Callable]
1313
debug = False # type: bool
1414
send = True # type: bool
1515
sync_mode = False # type: bool
1616
disabled = False # type: bool
17-
personal_api_key = None # type: str
18-
project_api_key = None # type: str
17+
personal_api_key = None # type: Optional[str]
18+
project_api_key = None # type: Optional[str]
1919
poll_interval = 30 # type: int
2020
disable_geoip = True # type: bool
2121

22-
default_client = None
22+
default_client = None # type: Optional[Client]
2323

2424

2525
def capture(
@@ -405,6 +405,11 @@ def feature_flag_definitions():
405405
return _proxy("feature_flag_definitions")
406406

407407

408+
def load_feature_flags():
409+
"""Load feature flag definitions from PostHog."""
410+
return _proxy("load_feature_flags")
411+
412+
408413
def page(*args, **kwargs):
409414
"""Send a page call."""
410415
_proxy("page", *args, **kwargs)

posthog/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = "3.3.3"
1+
VERSION = "3.3.4"
22

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

0 commit comments

Comments
 (0)