Skip to content

allow empty css variables#2984

Merged
rodrigogiraoserrao merged 3 commits intoTextualize:mainfrom
zormit:allow-empty-css-variables
Jul 22, 2023
Merged

allow empty css variables#2984
rodrigogiraoserrao merged 3 commits intoTextualize:mainfrom
zormit:allow-empty-css-variables

Conversation

@zormit
Copy link
Copy Markdown
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
Copy Markdown
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!

@rodrigogiraoserrao rodrigogiraoserrao self-requested a review July 22, 2023 10:26
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Member

@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
@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