Skip to content

Polygon as class#35

Merged
mindflayer merged 5 commits intomainfrom
polygon-class
Dec 11, 2025
Merged

Polygon as class#35
mindflayer merged 5 commits intomainfrom
polygon-class

Conversation

@mindflayer
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the Polygon factory function into a proper class that extends the Poly cdef class, providing better Shapely API compatibility and improved type hints.

Key Changes

  • Converted Polygon from a factory function to a class that inherits from Poly
  • Added comprehensive type hints for parameters using Python's typing module
  • Enhanced documentation with detailed docstrings for the class and __init__ method

Comment thread togo.pyx Outdated
Comment thread togo.pyx
Comment thread togo.pyx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 11, 2025

@mindflayer I've opened a new pull request, #36, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits December 11, 2025 17:33
* Initial plan

* Fix Python 3.8 compatibility: Replace tuple[float, float] with Tuple[float, float]

Co-authored-by: mindflayer <527325+mindflayer@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mindflayer <527325+mindflayer@users.noreply.github.com>
@mindflayer mindflayer merged commit b2f49a2 into main Dec 11, 2025
7 checks passed
@mindflayer mindflayer deleted the polygon-class branch December 11, 2025 16:42
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