[python] change Private attr to Class vars#16687
[python] change Private attr to Class vars#16687wing328 merged 7 commits intoOpenAPITools:masterfrom
Conversation
Signed-off-by: ふぁ <yuki@yuki0311.com>
|
fix: #16685 (comment) No test exists for this fix. |
|
@fa0311 in #16655, you completely removed I'm asking because using I wanted to replace it by |
|
@multani I have come up with a good idea to fix this. (However, |
This won't work out of the box: This will break several tests, you can check. On the other hand, |
77384d7 to
966d29e
Compare
|
@fa0311 Maybe this could actually help: https://docs.pydantic.dev/latest/concepts/models/#automatically-excluded-attributes |
I was just looking at that myself. |
Signed-off-by: ふぁ <yuki@yuki0311.com>
Signed-off-by: ふぁ <yuki@yuki0311.com>
|
A type hint is added to |
Signed-off-by: ふぁ <yuki@yuki0311.com>
Signed-off-by: ふぁ <yuki@yuki0311.com>
Signed-off-by: ふぁ <yuki@yuki0311.com>
multani
left a comment
There was a problem hiding this comment.
Yes, this is the good fix 🙇
|
FYI. Samples updated via 738af45 |
|
Tests added via #16690 |
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master(upcoming 7.1.0 minor release - breaking changes with fallbacks),8.0.x(breaking changes without fallbacks)