forked from loafle/openapi-generator-original
python: simplify module imports (#17507)
In #16624, I introduced a new mechanism to record imports to other modules, instead of having specialized datetime/typing/pydantic objects to manage imports for these modules. This change reuses the mechanism from #16624 and replace the specialized import managers by the generic one. Unused imports from various .mustache templates are also cleaned up.
This commit is contained in:
@@ -26,8 +26,6 @@ Test binary (gif) response body
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
@@ -91,8 +89,6 @@ Test body parameter(s)
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
@@ -160,8 +156,6 @@ Test array of binary in multipart mime
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
@@ -229,8 +223,6 @@ Test single binary in multipart mime
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
@@ -298,8 +290,6 @@ Test body parameter(s)
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet
|
||||
from openapi_client.rest import ApiException
|
||||
@@ -368,8 +358,6 @@ Test free form object
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
@@ -437,8 +425,6 @@ Test body parameter(s)
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet
|
||||
from openapi_client.rest import ApiException
|
||||
@@ -507,8 +493,6 @@ Test empty response body
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.models.pet import Pet
|
||||
from openapi_client.rest import ApiException
|
||||
@@ -577,8 +561,6 @@ Test empty json (request body)
|
||||
|
||||
|
||||
```python
|
||||
import time
|
||||
import os
|
||||
import openapi_client
|
||||
from openapi_client.models.tag import Tag
|
||||
from openapi_client.rest import ApiException
|
||||
|
||||
Reference in New Issue
Block a user