Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Revertible] Import autogenerated pydantic client #83

Open
wants to merge 1 commit into
base: launch-v1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add autogen python client
phil-scale committed Mar 7, 2023
commit 388cf5e1213d38113ee236008fd84bd9e90e2297
3 changes: 1 addition & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -26,6 +26,5 @@ reports=no
max-line-length=79

[MASTER]
# Ignore anything inside launch/clientlib (since it's documentation)
ignore=clientlib,api_client
ignore=api_client,openapi_client
extension-pkg-whitelist=pydantic
40 changes: 13 additions & 27 deletions launch/api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
# coding: utf-8
import inspect

# flake8: noqa
from pydantic import BaseModel

"""
launch

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""

__version__ = "1.0.5"

# import ApiClient
from launch.api_client.api_client import ApiClient

# import Configuration
from launch.api_client.configuration import Configuration

# import exceptions
from launch.api_client.exceptions import (
ApiAttributeError,
ApiException,
ApiKeyError,
ApiTypeError,
ApiValueError,
OpenApiException,
from launch.api_client import models
from launch.api_client.api_client import ( # noqa F401
ApiClient,
AsyncApis,
SyncApis,
)

for model in inspect.getmembers(models, inspect.isclass):
if model[1].__module__ == "launch.api_client.models":
model_class = model[1]
if isinstance(model_class, BaseModel):
model_class.update_forward_refs()
Empty file.
Loading