FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Revertible] Import autogenerated pydantic client by phil-scale · Pull Request #83 · scaleapi/launch-python-client · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (131) .pyi  (60) .toml  (1) dotfile  (1) All 4 file types selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 1 addition & 2 deletions .pylintrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL