| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
Codecov ReportPatch and project coverage have no change. Additional details and impacted files @@ Coverage Diff @@
## main #1773 +/- ##
=======================================
Coverage 85.00% 85.00%
=======================================
Files 134 134
Lines 8845 8845
=======================================
Hits 7519 7519
Misses 1326 1326
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Sorry, something went wrong.
Signed-off-by: Johannes Messner <messnerjo@gmail.com>
|
@samsja what will be the effect of pydantic v2 on this? |
Sorry, something went wrong.
this way will still be compatible with pydantic v2 but pydantic will show a warning saying it is deprecated. I suggest we update the docs after the merge |
Sorry, something went wrong.
|
|
||
|
|
||
| class MyDoc(BaseDoc): | ||
| class Config(BaseDoc.Config): |
There was a problem hiding this comment.
Minor comment. In pydantic v1, we only had to pass a class Config in the model. It didn't need to be inherited from another config class.
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, in pydantic that is not needed. But we set some pydantic configs in BaseDoc, so to preserve them, inheritance is needed. We could probably find some magic way around this, but until then this is the safest option imo.
Sorry, something went wrong.
|
📝 Docs are deployed on https://ft-docs-document-config--jina-docs.netlify.app 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
there is a small things that users need to be aware of when setting configs, so i am explaining that here.
TODO: small test done