Skip to content

Commit 8794124

Browse files
committed
Reverting 3.10 features
Azure only knows about 3.9
1 parent ec0590c commit 8794124

File tree

7 files changed

+3
-112
lines changed

7 files changed

+3
-112
lines changed

mrmat_python_api_fastapi/apis/__init__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,3 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22-
23-
# MIT License
24-
#
25-
# Copyright (c) 2022 MrMat
26-
#
27-
# Permission is hereby granted, free of charge, to any person obtaining a copy
28-
# of this software and associated documentation files (the "Software"), to deal
29-
# in the Software without restriction, including without limitation the rights
30-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
# copies of the Software, and to permit persons to whom the Software is
32-
# furnished to do so, subject to the following conditions:
33-
#
34-
# The above copyright notice and this permission notice shall be included in
35-
# all copies or substantial portions of the Software.
36-
#
37-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
# SOFTWARE.

mrmat_python_api_fastapi/apis/greeting/__init__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,3 @@
1919
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
22-
23-
# MIT License
24-
#
25-
# Copyright (c) 2022 MrMat
26-
#
27-
# Permission is hereby granted, free of charge, to any person obtaining a copy
28-
# of this software and associated documentation files (the "Software"), to deal
29-
# in the Software without restriction, including without limitation the rights
30-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
# copies of the Software, and to permit persons to whom the Software is
32-
# furnished to do so, subject to the following conditions:
33-
#
34-
# The above copyright notice and this permission notice shall be included in
35-
# all copies or substantial portions of the Software.
36-
#
37-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
# SOFTWARE.

mrmat_python_api_fastapi/apis/greeting/v1/__init__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,5 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
# MIT License
24-
#
25-
# Copyright (c) 2022 MrMat
26-
#
27-
# Permission is hereby granted, free of charge, to any person obtaining a copy
28-
# of this software and associated documentation files (the "Software"), to deal
29-
# in the Software without restriction, including without limitation the rights
30-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
# copies of the Software, and to permit persons to whom the Software is
32-
# furnished to do so, subject to the following conditions:
33-
#
34-
# The above copyright notice and this permission notice shall be included in
35-
# all copies or substantial portions of the Software.
36-
#
37-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
# SOFTWARE.
44-
4523
from .model import GreetingV1Output # noqa: F401
4624
from .api import router as api_greeting_v1 # noqa: F401

mrmat_python_api_fastapi/apis/greeting/v1/api.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
# MIT License
24-
#
25-
# Copyright (c) 2022 MrMat
26-
#
27-
# Permission is hereby granted, free of charge, to any person obtaining a copy
28-
# of this software and associated documentation files (the "Software"), to deal
29-
# in the Software without restriction, including without limitation the rights
30-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
# copies of the Software, and to permit persons to whom the Software is
32-
# furnished to do so, subject to the following conditions:
33-
#
34-
# The above copyright notice and this permission notice shall be included in
35-
# all copies or substantial portions of the Software.
36-
#
37-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
# SOFTWARE.
44-
4523
from fastapi import APIRouter
4624
from mrmat_python_api_fastapi.apis.greeting.v1 import GreetingV1Output
4725

mrmat_python_api_fastapi/apis/greeting/v1/model.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
# MIT License
24-
#
25-
# Copyright (c) 2022 MrMat
26-
#
27-
# Permission is hereby granted, free of charge, to any person obtaining a copy
28-
# of this software and associated documentation files (the "Software"), to deal
29-
# in the Software without restriction, including without limitation the rights
30-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31-
# copies of the Software, and to permit persons to whom the Software is
32-
# furnished to do so, subject to the following conditions:
33-
#
34-
# The above copyright notice and this permission notice shall be included in
35-
# all copies or substantial portions of the Software.
36-
#
37-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43-
# SOFTWARE.
44-
4523
from pydantic import BaseModel, Field
4624

4725

mrmat_python_api_fastapi/apis/greeting/v2/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
Blueprint for the Greeting API in V2
2525
"""
2626

27+
from typing import Optional
2728
from fastapi import APIRouter
2829
from mrmat_python_api_fastapi.apis.greeting.v2 import GreetingV2Output
2930

@@ -35,5 +36,5 @@
3536
name='get_greeting_v2',
3637
description='Get a greeting for a given name',
3738
response_description='A JSON-encoded greeting for the provided name')
38-
async def get_greeting(name: str | None = 'Stranger'):
39+
async def get_greeting(name: Optional[str] = 'Stranger'):
3940
return GreetingV2Output(message=f'Hello {name}')

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ url = https://github.com/MrMatOrg/mrmat-python-api-fastapi
1111
classifiers =
1212
Development Status :: 3 - Alpha
1313
License :: OSI Approved :: MIT
14-
Programming Language :: Python :: 3.10
14+
Programming Language :: Python :: 3.9
1515

1616
[options]
1717
packages = find:

0 commit comments

Comments
 (0)