Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(text area): update code editor constructor #4172

Conversation

TomJGooding
Copy link
Contributor

@TomJGooding TomJGooding commented Feb 16, 2024

Update the TextArea.code_editor convenience constructor to include the new read_only and max_checkpoints attributes.

Please review the following checklist.

  • Docstrings on all new or modified functions / classes
  • Updated documentation
  • Updated CHANGELOG.md (where appropriate)

Update the `TextArea.code_editor` convenience constructor to include the
new `read_only` and `max_checkpoints` attributes.
@darrenburns
Copy link
Member

When I added this constructor I thought to myself "I'm definitely gonna forget to update this..." 😂

I wonder if we could add a sort of "meta" test which would catch variance between the constructors using the inspect module and looking at the signatures to detect if their parameters differ.

@TomJGooding
Copy link
Contributor Author

I've added a test in 4cb6244 - hopefully I've understood you correctly!

Copy link
Member

@darrenburns darrenburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@darrenburns darrenburns merged commit 6de5e67 into Textualize:main Feb 21, 2024
20 checks passed
@TomJGooding TomJGooding deleted the fix-text-area-update-code-editor-constructor branch February 27, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants