Skip to content

Conversation

@aborem
Copy link
Collaborator

@aborem aborem commented Jul 24, 2025

Closes #30 and discussed in dtinit/pardner-site#10 (comment)

This doesn't change anything about the existing classes because using a class instance implies that you're okay with state, so making those optionally stateless is not necessary.

@aborem aborem requested a review from lisad July 24, 2025 19:50
Scope: TypeAlias = str | set[object] | tuple[object] | list[object]


def generic_construct_authorization_url(
Copy link
Member

Choose a reason for hiding this comment

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

There's no reason that the stateless methods need to be functional instead of object-oriented just because they're stateless, but this is fine of course!

Copy link
Member

Choose a reason for hiding this comment

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

For these to be used from outside the library when the library is packaged and installed via something like setup, these methods will need to be exported in an init.py in the main directory of the library, but that can be added.

@aborem aborem merged commit eeda4e2 into main Jul 25, 2025
1 check passed
@aborem aborem deleted the aborem/makes-base-stateless-functions branch July 25, 2025 01:30
aborem added a commit that referenced this pull request Jul 28, 2025
aborem added a commit that referenced this pull request Jul 28, 2025
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.

Create stateless OAuth functions

3 participants