Просмотр исходного кода

ref: match signature of Func.as_sql (#74952)

fixes an error pointed out by mypy 1.11
<!-- Describe your PR here. -->
anthony sottile 7 месяцев назад
Родитель
Сommit
ab0307a1b7
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/sentry/event_manager.py

+ 9 - 1
src/sentry/event_manager.py

@@ -334,7 +334,15 @@ class ScoreClause(Func):
         # This is used within create_or_update and friends
         return self.group.get_score() if self.group else 0
 
-    def as_sql(self, compiler, connection, function=None, template=None):
+    def as_sql(
+        self,
+        compiler,
+        connection,
+        function=None,
+        template=None,
+        arg_joiner: str | None = None,
+        **extra_context,
+    ) -> tuple[str, list[str | int]]:
         has_values = self.last_seen is not None and self.times_seen is not None
         if has_values:
             sql = "log(times_seen + %d) * 600 + %d" % (