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:
Jonathan Ballet
2024-01-03 14:22:53 +01:00
committed by GitHub
parent dffb5c121f
commit 063865973d
266 changed files with 356 additions and 1335 deletions

View File

@@ -18,8 +18,6 @@ Test path parameter(s)
```python
import time
import os
import openapi_client
from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException