Comments (2)
I will have a look when all the attribute matches the pattern ^[A-Za-z0-9_]+$
from jsonschema-gentypes.
Here's a dirty hack for the naive case of well-behaved attribute names.
https://gist.github.com/bollwyvl/77ece68e4f3748b036d71c1572d96c26
Stuff that comes out has issues as-is, but passes mypy
/pyflakes
after going through (in order):
docformatter
ssort
isort
black
My primary interest is getting this all the way through to sphinx-autodoc-typehints, which it seems to do fairly well. Having some additional opinions about comment styles to match different project needs also suggests some ways forward.
From an IDE usage perspective, it might be preferable to have a top-level namespace-y kinda class which held all the constants.
from jsonschema-gentypes.
Related Issues (20)
- Depends on requests, but doesn't declare it
- Docstring of objects does not end up in generated code HOT 5
- `root_name` does not affect subtypes or docstrings HOT 1
- missing type is not inferred correctly HOT 9
- Proposal: Workaround for mypy's incorrect implementation of NotRequired
- Lookup references from referenced file HOT 2
- doesn't find any types HOT 2
- RecursionError: maximum recursion depth exceeded HOT 2
- Issues with $ref resolution in multiple schema files
- Ignoring / not generating code for required fields when oneOf HOT 1
- Support for `patternProperties` when there is only one entry HOT 1
- Tests are failing with Python 3.12
- Preserving case when generating $ref classes HOT 5
- Variable name collision with enum case variants
- Can't handle .. paths + ref path resolution properly
- Bug: `python_version` is not read from `generate[*]` in configuration
- Generated code import ordering is random HOT 1
- Geo GHCI test Dashboard
- Geo GHCI int Dashboard
- Invalid Python Code and Type Definitions Generated HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonschema-gentypes.