We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d6e897 + 095f11f commit 22ec567Copy full SHA for 22ec567
1 file changed
src/superannotate/lib/app/interface/base_interface.py
@@ -4,6 +4,7 @@
4
import platform
5
import sys
6
import typing
7
+from functools import lru_cache
8
from inspect import signature
9
from pathlib import Path
10
from types import FunctionType
@@ -128,6 +129,7 @@ def get_mp_instance(self) -> Mixpanel:
128
129
return Mixpanel(mp_token)
130
131
@staticmethod
132
+ @lru_cache
133
def get_default_payload(team_name, user_email):
134
return {
135
"SDK": True,
@@ -136,6 +138,7 @@ def get_default_payload(team_name, user_email):
136
138
"Version": os.environ["sa_version"],
137
139
"Python version": platform.python_version(),
140
"Python interpreter type": platform.python_implementation(),
141
+ "Env": os.environ.get("SA_ENV", "N/A"),
142
}
143
144
def __init__(self, function):
0 commit comments