Skip to content

Commit e00ac50

Browse files
authored
[python] Update python versions (#8042)
* Remove redundant encoding definitions UTF-8 is already the default encoding in Python 3. * Remove Python3.4 related requirements * Remove dead Python version 3.5 * Add Python 3.9 to CI and test configs * Update petstore example
1 parent 35d616c commit e00ac50

File tree

243 files changed

+32
-474
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+32
-474
lines changed

modules/openapi-generator/src/main/resources/python/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
1717

1818
## Requirements.
1919

20-
Python >= 3.5
20+
Python >= 3.6
2121

2222
## Installation & Usage
2323
### pip install

modules/openapi-generator/src/main/resources/python/README_onlypackage.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
1717

1818
## Requirements.
1919

20-
Python >= 3.5
20+
Python >= 3.6
2121

2222
## Installation & Usage
2323

modules/openapi-generator/src/main/resources/python/__init__apis.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{#apiInfo}}
22
{{#apis}}
33
{{#-first}}
4-
# coding: utf-8
54

65
# flake8: noqa
76

modules/openapi-generator/src/main/resources/python/__init__models.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# flake8: noqa
42

53
# import all models into this package

modules/openapi-generator/src/main/resources/python/__init__package.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
# flake8: noqa
42

53
{{>partial_header}}

modules/openapi-generator/src/main/resources/python/api.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
{{>partial_header}}
42

53
import re # noqa: F401

modules/openapi-generator/src/main/resources/python/api_client.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding: utf-8
21
{{>partial_header}}
32

43
import json

modules/openapi-generator/src/main/resources/python/api_test.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
{{>partial_header}}
42

53
import unittest

modules/openapi-generator/src/main/resources/python/asyncio/rest.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
{{>partial_header}}
42

53
import io

modules/openapi-generator/src/main/resources/python/configuration.mustache

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# coding: utf-8
2-
31
{{>partial_header}}
42

53
import copy

0 commit comments

Comments
 (0)