Skip to content
Snippets Groups Projects

Fix: add an assertion in throttling.py to please mypy 1.14

Closed David Douard requested to merge douardda/swh-web:fix-mypy into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -132,6 +132,7 @@ class SwhWebRateThrottle(ScopedRateThrottle):
)
self.scope = default_scope
assert default_scope is not None
exempted_networks = self.get_exempted_networks(default_scope)
exempted_ip = False
Loading