FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: added types to exec & tc_properties_get_tc_host by Dandiggas · Pull Request #561 · testcontainers/testcontainers-python · GitHub

fix: added types to exec & tc_properties_get_tc_host - #561

Merged
alexanderankin merged 2 commits into
testcontainers:mainfrom
Dandiggas:docker-container-exec-type
May 17, 2024
Merged

fix: added types to exec & tc_properties_get_tc_host#561
alexanderankin merged 2 commits into
testcontainers:mainfrom
Dandiggas:docker-container-exec-type

Conversation

Copy link
Copy Markdown
Contributor

#557 - trying to solve this issue by adding types.

errordeveloper left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this LGTM overall, thanks @Dandiggas!

Copy link
Copy Markdown

@kiview could you please approve the workflows to run?

Copy link
Copy Markdown
Member

We'll take a look

Copy link
Copy Markdown
Member

yep so we support python 3.9 for now so cant use the pipe syntax for typing.Union - but the other type is indeed wrong so we could merge a pr that just fixes a single type, would probably prefer a PR that fixes types more comprehensively like #504 - if you want to provide feedback on that branch, that could help it along - it was only not merged because i was not confident in 100% of the choices made in there at the time.

ill leave this open in case you want to replace with from typing import Union

Dandiggas force-pushed the docker-container-exec-type branch from b66a469 to a43d3b5 Compare May 16, 2024 22:34

Copy link
Copy Markdown
Contributor Author

@alexanderankin Now supports python 3.9, please review when possible

alexanderankin changed the title added types to exec & tc_properties_get_tc_host fix: added types to exec & tc_properties_get_tc_host May 17, 2024
alexanderankin merged commit 9eabb79 into testcontainers:main May 17, 2024

Copy link
Copy Markdown
Member

thank you for the contribution! if you are interested in improving typing in this library are other types that I have started but did not feel confident enough to merge #504

alexanderankin pushed a commit that referenced this pull request May 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.5.0](testcontainers-v4.4.1...testcontainers-v4.5.0)
(2024-05-25)


### Features

* **core:** Private registry
([#566](#566))
([59fbcfa](59fbcfa))


### Bug Fixes

* added types to exec & tc_properties_get_tc_host
([#561](#561))
([9eabb79](9eabb79))
* on windows, DockerCompose.get_service_host returns an unusable
"0.0.0.0" - adjust to 127.0.0.1
([#457](#457))
([2aa3d37](2aa3d37))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mbenabda pushed a commit to mbenabda/testcontainers-python that referenced this pull request May 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.5.0](testcontainers/testcontainers-python@testcontainers-v4.4.1...testcontainers-v4.5.0)
(2024-05-25)


### Features

* **core:** Private registry
([testcontainers#566](testcontainers#566))
([59fbcfa](testcontainers@59fbcfa))


### Bug Fixes

* added types to exec & tc_properties_get_tc_host
([testcontainers#561](testcontainers#561))
([9eabb79](testcontainers@9eabb79))
* on windows, DockerCompose.get_service_host returns an unusable
"0.0.0.0" - adjust to 127.0.0.1
([testcontainers#457](testcontainers#457))
([2aa3d37](testcontainers@2aa3d37))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL