Repository navigation
Conversation
Distinguish class objects before choosing the function prefix in DocmentText. Keep function and callable-instance signatures unchanged, and cover the behavior in the source notebook. Fixes AnswerDotAI#829.
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Class signatures currently render with
def, soMarkdownRenderer(MyClass)presents a class as a function. Selectclassfor class objects in the sharedDocmentTextrenderer. Preservedefandasync deffor functions and callable instances.Update the source Notebook and generated module together. Regression coverage includes a constructor with annotated/default parameters, a dataclass, a built-in class, and the rendered Markdown code block, with regular/async function and callable-instance controls. The documentation explains the prefix distinction.
Fixes #829.
Validation on Linux:
nbdev-test --n-workers 2 --timing --cell-timeout 90passes all 24 Notebooks, including the added regressions.nbdev-clean --fname nbs/04_docments.ipynband a repeatnb_exportleave the intended source/generated files consistent.uv pip checkandgit diff --checkpass.Upstream CI for the submitted head is awaiting maintainer authorization (
action_required): https://github.com/AnswerDotAI/fastcore/actions/runs/46574837792. It has not run yet.Prepared and tested with OpenAI Codex assistance.