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: keep the backward compatibility for type hint #1052

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

mingrammer
Copy link
Owner

@mingrammer mingrammer commented Nov 7, 2024

Hi @liancheng @gabriel-tessier . The | for type hint does not work for < Python 3.9. I fixed it with the Union function.

@mingrammer
Copy link
Owner Author

This is a hotfix issue, so I should merge it immediately. Check later, please.

@mingrammer mingrammer merged commit c2c24c6 into master Nov 7, 2024
7 checks passed
@mingrammer mingrammer deleted the keep-backward-compatability branch November 7, 2024 02:18
@mingrammer
Copy link
Owner Author

cc @filipeaaoliveira, @tvqphuoc01

@gabriel-tessier
Copy link
Collaborator

@mingrammer
Do we need to support version < 3.9?

3.8 support end 1 month ago:
https://endoflife.date/python

The unit tests run for Python 3.9 and greater.
https://github.com/mingrammer/diagrams/actions/runs/11715386813

My opinion is to stick with the lower version of the tests 3.9.

Note for later update the Readme.
"It requires Python 3.7 or higher, check your Python version first."

@tvqphuoc01
Copy link
Collaborator

tvqphuoc01 commented Nov 18, 2024

agree with @gabriel-tessier our pipeline is only scan code with Python version higher 3.8 so I think we don't need to support v3.8

@mingrammer
Copy link
Owner Author

mingrammer commented Nov 20, 2024

Agree with all of you. I didn't check the EOL of 3.8.

I'll update the badge and requirements in the readme. Thank you for checking it.

@mingrammer
Copy link
Owner Author

I made a PR: #1064

gabriel-tessier added a commit that referenced this pull request Jan 13, 2025
* [979] Add icons

* fix: icons size

* bump: up to version 0.24.0

* Update version of codeql-analysis.yml (#1035)

v2 will deprecate soon so we will move to v3 🌴 
https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/

* Upgrade for 3.12/3.13 (#972)

* fix tests (#1050)

* chore(deps): bump jinja2 from 3.1.2 to 3.1.4 (#1037)

* ci(test): add test trigger path

* ci(test): add test trigger path

* fix: update poetry lock

* fix: keep the backward compatability for type hint (#1052)

* Update installation command for mingrammer/round to use 'go install' with the latest version instead of 'go get'. (#1057)

* fix(node): change elixir language image to one with no background (#976)

* fix elixir image

* fix website elixir image

* Add diagrams.onprem.network.Mikrotik (#1058)

* issue-982: add azure speech to text and Azure OpenAI (#1061)

* Add Transit Gateway Attachment icon, its alias and Internet Gateway alias. (#1038)

* issue-1056: add crowdstrike (#1062)

* fix typo for crowdstrike (#1063)

* Updated Legacy ENV Path (#1008)

* Minor Change

* fix: pin python version + fix font path

* More recent Python version

---------

Co-authored-by: tessier <[email protected]>

* autogen.sh

* Generate node

* Revert build as node and set in _init

* Clean generated files

---------

Co-authored-by: mingrammer <[email protected]>
Co-authored-by: Phuoc Tran <[email protected]>
Co-authored-by: Tobias Bruckert <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nguyễn Đức Chiến <[email protected]>
Co-authored-by: Gabriel Oliveira <[email protected]>
Co-authored-by: laiminhtrung1997 <[email protected]>
Co-authored-by: Abhishek Jadhav <[email protected]>
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.

3 participants