Skip to content

Commit

Permalink
lint: ignore dynamic properties
Browse files Browse the repository at this point in the history
Callables are receiving dynamic attributes, something that isn't "usual".

See python/mypy#708

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Mar 7, 2022
1 parent 776cb20 commit 2a5e20b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion warehouse/csrf.py
Expand Up @@ -40,7 +40,7 @@ def wrapped(context, request):
return wrapped


require_method_view.options = {"require_methods"}
require_method_view.options = {"require_methods"} # type: ignore


def includeme(config):
Expand Down
2 changes: 1 addition & 1 deletion warehouse/i18n/__init__.py
Expand Up @@ -170,7 +170,7 @@ def wrapped(context, request):
return wrapped


translated_view.options = {"has_translations"}
translated_view.options = {"has_translations"} # type: ignore


def includeme(config):
Expand Down
2 changes: 1 addition & 1 deletion warehouse/legacy/api/xmlrpc/cache/derivers.py
Expand Up @@ -43,7 +43,7 @@ def wrapper_view(context, request):
return view


cached_return_view.options = [
cached_return_view.options = [ # type: ignore
"xmlrpc_cache",
"xmlrpc_cache_tag",
"xmlrpc_cache_expires",
Expand Down
2 changes: 1 addition & 1 deletion warehouse/manage/__init__.py
Expand Up @@ -57,7 +57,7 @@ def wrapped(context, request):
return view


reauth_view.options = {"require_reauth"}
reauth_view.options = {"require_reauth"} # type: ignore


def includeme(config):
Expand Down
2 changes: 1 addition & 1 deletion warehouse/sessions.py
Expand Up @@ -361,7 +361,7 @@ def wrapped(context, request):
return wrapped


session_view.options = {"uses_session"}
session_view.options = {"uses_session"} # type: ignore


def includeme(config):
Expand Down

0 comments on commit 2a5e20b

Please sign in to comment.