Skip to content

Commit f2c1cf5

Browse files
authored
Merge pull request #50 from ravaszf/fix/typing-error
Fix Python 3.9.0/3.9.1 error, changing Callable import from `collections.abc` to `typing` library
2 parents c3314bc + fc6914f commit f2c1cf5

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This package is open to contributions 👏
44

55
To contribute, please follow these steps:
66

7-
1. Create an issue explaining what you'd like to fix or add. This way, we can approve and discuss the
7+
1. Create an issue explaining what you'd like to fix or add. This way, we can approve and discuss the
88
solution before any time is spent on developing it.
99
2. Fork the upstream repository into a personal account.
1010
3. Install [poetry](https://python-poetry.org/), and install all dependencies using ``poetry install``
@@ -15,5 +15,5 @@ solution before any time is spent on developing it.
1515
8. Run `pre-commit run --all-files` locally to ensure proper linting
1616
9. Create a pull request to the Intility repository with a detailed summary of your changes and what motivated the change
1717

18-
If you need a more detailed walk through, please see this
19-
[issue comment](https://github.com/Intility/fastapi-azure-auth/issues/49#issuecomment-1056962282).
18+
If you need a more detailed walk through, please see this
19+
[issue comment](https://github.com/Intility/fastapi-azure-auth/issues/49#issuecomment-1056962282).

fastapi_azure_auth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
SingleTenantAzureAuthorizationCodeBearer as SingleTenantAzureAuthorizationCodeBearer,
44
)
55

6-
__version__ = '3.2.0'
6+
__version__ = '3.3.0'

fastapi_azure_auth/auth.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import inspect
22
import logging
3-
from collections.abc import Callable
4-
from typing import Any, Awaitable, Literal, Optional
3+
from typing import Any, Awaitable, Callable, Literal, Optional
54

65
from fastapi.exceptions import HTTPException
76
from fastapi.security import OAuth2AuthorizationCodeBearer, SecurityScopes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "fastapi-azure-auth"
3-
version = "3.2.0" # Remember to change in __init__.py as well
3+
version = "3.3.0" # Remember to change in __init__.py as well
44
description = "Easy and secure implementation of Azure AD for your FastAPI APIs"
55
authors = ["Jonas Krüger Svensson <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)