Skip to content

Commit

Permalink
Add typings to default_backend() (#7133)
Browse files Browse the repository at this point in the history
This commit adds back a return type for default_backend, so mypy would consider this function typed.
  • Loading branch information
Gaasmann committed Apr 27, 2022
1 parent cfdfb1a commit 82d9339
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cryptography/hazmat/backends/__init__.py
@@ -1,9 +1,10 @@
# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from typing import Any


def default_backend():
def default_backend() -> Any:
from cryptography.hazmat.backends.openssl.backend import backend

return backend

0 comments on commit 82d9339

Please sign in to comment.