Skip to content

Support / as an overload on Uri, like Pathlib#224

Merged
kmontemayor2-sc merged 9 commits intomainfrom
kmonte/uri-join
Aug 8, 2025
Merged

Support / as an overload on Uri, like Pathlib#224
kmontemayor2-sc merged 9 commits intomainfrom
kmonte/uri-join

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

Added truediv method on URI, returning an instance of Self.

Also updated some typignn things on URI, to return typing_extensions.Self instead of URI.

This way, LocalUri.join("foo") is a LocalURI, not a URI.

Added tests for the above features.

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/unit_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 29, 2025

GiGL Automation

@ 01:37:52UTC : 🔄 Unit Test started.

@ 02:20:27UTC : ✅ Workflow completed successfully.

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/integration_test

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/e2e_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 29, 2025

GiGL Automation

@ 15:45:42UTC : 🔄 E2E Test started.

@ 17:16:46UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 29, 2025

GiGL Automation

@ 15:45:43UTC : 🔄 Integration Test started.

@ 16:37:35UTC : ✅ Workflow completed successfully.

Comment thread python/gigl/common/types/uri/uri.py
Comment thread python/gigl/common/types/uri/uri.py
Comment thread python/tests/unit/common/types/uri_test.py Outdated
Copy link
Copy Markdown
Collaborator

@svij-sc svij-sc left a comment

Choose a reason for hiding this comment

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

Approving as non blocking.
But, as a reviewer comment on readability stands - I would prefer us not to not use parameterized as a "swiss army knife", it is nice for what it is and we should use it when needed - in this case its inducing extra unnecessary effort for the reader.

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/unit_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Aug 8, 2025

GiGL Automation

@ 18:42:26UTC : 🔄 Unit Test started.

@ 19:24:36UTC : ✅ Workflow completed successfully.

Copy link
Copy Markdown
Collaborator

@mkolodner-sc mkolodner-sc left a comment

Choose a reason for hiding this comment

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

Thanks Kyle!

Comment thread python/gigl/common/types/uri/uri.py
@kmontemayor2-sc kmontemayor2-sc added this pull request to the merge queue Aug 8, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 8, 2025
@kmontemayor2-sc kmontemayor2-sc added this pull request to the merge queue Aug 8, 2025
Merged via the queue into main with commit 0f2d31c Aug 8, 2025
5 checks passed
@kmontemayor2-sc kmontemayor2-sc deleted the kmonte/uri-join branch August 8, 2025 22: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.

4 participants