Skip to content

Conversation

@anniel-stripe
Copy link
Contributor

@anniel-stripe anniel-stripe commented Oct 11, 2023

This PR:

  1. Removes all from __future__ import absolute_import, division, print_function imports. These imports are no longer necessary, as they are used for forwards compatibility with Python 2.x versions and became the default behavior in Python 3.0 (see https://docs.python.org/3/library/__future__.html). Since stripe-python supports Python >=3.6 as of v6.0.0, this is a non-breaking change.
  2. Updates stripe/object_classes.py to use generated sections, allowing us to manually maintain data structure objects like ListObject (see commit).

Copy link
Contributor

@pakrym-stripe pakrym-stripe left a comment

Choose a reason for hiding this comment

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

A lot of unrelated changes.

@anniel-stripe anniel-stripe merged commit 362f551 into master Oct 11, 2023
richardm-stripe added a commit that referenced this pull request Oct 11, 2023
* Bump version to 6.7.0

* Better types for search result methods (#1070)

* Remove `__future__` imports and use generated sections in `object_classes.py` (#1069)

* Use generated section in object classes file

* Remove generated __future__ imports

* Remove manual __future__ imports

* Business objects -> Object classes

* regenerate

* Update generated code for v597 (#1071)

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* wip

* Properly deserialize beneath map types

* Generate nested resource classes

* Don't filter out Nones

---------

Co-authored-by: Annie Li <[email protected]>
Co-authored-by: anniel-stripe <[email protected]>
Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
@xavdid-stripe xavdid-stripe deleted the anniel-object-class-section branch May 10, 2024 03:29
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