Skip to content

Commit d47f360

Browse files
author
Tyler O'Meara
committed
Suppress mypy error on SentryMixIn with RequestHandler
Mypy doesn't support this kind of conditional declaration based on catching ImportError. See mypy issue #1152 (python/mypy#1152) for more information.
1 parent 2eddfa9 commit d47f360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grouper/fe/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class InvalidUser(Exception):
4949
else:
5050
class SentryHandler(SentryMixin, RequestHandler):
5151
pass
52-
RequestHandler = SentryHandler
52+
RequestHandler = SentryHandler # type: ignore # no support for conditional declarations #1152
5353

5454

5555
class GrouperHandler(RequestHandler):

0 commit comments

Comments
 (0)