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

feat: add the possibility to switch from two lines layout to single one #50

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

JulesL2
Copy link
Contributor

@JulesL2 JulesL2 commented Nov 2, 2024

Description

Support of the switch from single line to 2 lines stat panel as worked here:
#45

Now the solution is less expensive as we recalculate only the panels elements

@github-actions github-actions bot added the enhancement New feature or request label Nov 2, 2024
@JulesL2 JulesL2 force-pushed the JulesL2/2lines_layout branch 2 times, most recently from 2a46044 to ba6bd7b Compare November 2, 2024 09:27
@JulesL2 JulesL2 force-pushed the JulesL2/2lines_layout branch 2 times, most recently from 9f6d5d8 to 9dbcc24 Compare November 3, 2024 19:52
@JulesL2
Copy link
Contributor Author

JulesL2 commented Nov 4, 2024

@ThomasParistech I fixed your comments. Ready to merge 🎈

@JulesL2
Copy link
Contributor Author

JulesL2 commented Nov 4, 2024

Need python 3.11 to use the Self variable that you have suggest.
See PR #52

from dataclasses import dataclass
from dataclasses import fields
from typing import ClassVar
from typing import Self
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
from typing import Self
from typing_extensions import Self

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ThomasParistech Don't you think it is better to put python to 3.11 rather than using a backport feature ?

Copy link
Owner

Choose a reason for hiding this comment

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

from typing_extensions import Self is already used through the code

But you're right, let's upgrade python!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I have not seen that typing_extensions was already use

@ThomasParistech ThomasParistech merged commit 5c9d5a0 into ThomasParistech:main Nov 4, 2024
2 checks passed
@JulesL2 JulesL2 deleted the JulesL2/2lines_layout branch November 5, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants