forked from loafle/openapi-generator-original
* python: type generated client using Self This doesn't offer a clear win but this helps for: * Using modern types and making the typing intent clearer * Decreasing the need for `from __future__ import annotations`, since a class can now refer to itself without using its name * Using more `cls` to automatically refer to the class, instead of respecifying the class name every time Self is available from Python 3.11 and is provided in typing_extensions (since 4.0.0) as a fallback for older versions See: https://peps.python.org/pep-0673/ See: https://github.com/python/typing_extensions/blob/main/CHANGELOG.md#added-in-version-400 * generate code
31 lines
738 B
TOML
31 lines
738 B
TOML
[tool.poetry]
|
|
name = "openapi_client"
|
|
version = "1.0.0"
|
|
description = "Echo Server API"
|
|
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
|
|
license = "Apache 2.0"
|
|
readme = "README.md"
|
|
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
|
keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
|
|
include = ["openapi_client/py.typed"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.7"
|
|
|
|
urllib3 = ">= 1.25.3"
|
|
python-dateutil = ">=2.8.2"
|
|
pydantic = ">=2"
|
|
typing-extensions = ">=4.7.1"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
pytest = ">=7.2.1"
|
|
tox = ">=3.9.0"
|
|
flake8 = ">=4.0.0"
|
|
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
extension-pkg-whitelist = "pydantic"
|