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

Modify the screen examples to import Screen from textual.screen #888

Merged
merged 3 commits into from
Oct 13, 2022

Conversation

davep
Copy link
Contributor

@davep davep commented Oct 13, 2022

The surrounding text in the documentation states that Screen is imported from textual.screen, but the code was importing the class from textual.app. Further, I was getting warnings from pyright that I was using a class that wasn't exported from the module I was importing from.

The surrounding text in the documentation states that Screen is imported
from textual.screen, but the code was importing the class from textual.app.
Further, I was getting warnings from pyright that I was using a class that
wasn't exported from the module I was importing from.
@davep davep requested a review from willmcgugan October 13, 2022 08:14
willmcgugan
willmcgugan previously approved these changes Oct 13, 2022
@willmcgugan willmcgugan dismissed their stale review October 13, 2022 09:17

Missing something

@willmcgugan
Copy link
Collaborator

@davep Just noticed this will break the code highlghting feature in the docs.

If you search for those files in the docs (.md files), you will find those examples there. You will need to update the "hl_lines" attribute accordingly.

You can run make docs-serve to confirm.

davep added 2 commits October 13, 2022 11:03
I'd not realised that
Textualize@78ea2cd
would have a visible knock-on effect in the docs, because the docs specify
which lines should be highlighted. As per this comment
Textualize#888 (comment) this
corrects that.
@davep
Copy link
Contributor Author

davep commented Oct 13, 2022

Thanks for pointing that out @willmcgugan -- now hopefully corrected.

Copy link
Collaborator

@willmcgugan willmcgugan left a comment

Choose a reason for hiding this comment

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

LGTM

@davep davep merged commit bf1ad06 into Textualize:css Oct 13, 2022
@davep davep deleted the css-docs-screen-import branch October 13, 2022 10:12
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