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

allow empty css variables #2984

Merged
merged 3 commits into from
Jul 22, 2023

Conversation

zormit
Copy link
Contributor

@zormit zormit commented Jul 22, 2023

fixes #1849

Please review the following checklist.

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

Co-authored-by: @eliasdorneles

Copy link
Contributor

@rodrigogiraoserrao rodrigogiraoserrao left a comment

Choose a reason for hiding this comment

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

Looking good!

I was looking at the if: ... elif: ... elif: ... and I see we are now doing variables.setdefault in pretty much all of the branches that look interesting.
Is it possible that we can call setdefault earlier and then use regular dictionary access where we are currently using setdefault + append?

I'm not sure we can & if we can, not sure it'll help.
But I'd like you to give it some thought, if possible.

Thanks!

Copy link
Contributor

@rodrigogiraoserrao rodrigogiraoserrao left a comment

Choose a reason for hiding this comment

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

Looks good to me! 🚀

@zormit zormit force-pushed the allow-empty-css-variables branch from 733fbb9 to 7770f8d Compare July 22, 2023 10:29
@rodrigogiraoserrao
Copy link
Contributor

@willmcgugan this is ready for you to take a look!

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!

@rodrigogiraoserrao rodrigogiraoserrao merged commit 40ba334 into Textualize:main Jul 22, 2023
19 checks passed
@zormit zormit deleted the allow-empty-css-variables branch July 22, 2023 11:58
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.

Allow for empty CSS variable definitions
3 participants