Skip to content

Bundle function into method #44

@Nathan-Nesbitt

Description

@Nathan-Nesbitt

Ran into this while I was cleaning up another issue:

https://github.com/SatelCreative/satel-spylib/blob/04cfd44ed8b3684512a76a5799a12f989bf91aae/spylib/oauth/tokens.py#L16-L19

This function is called in only one place; this class:

https://github.com/SatelCreative/satel-spylib/blob/04cfd44ed8b3684512a76a5799a12f989bf91aae/spylib/oauth/tokens.py#L41-L53

This should probably just be a method, as it will reduce the possibility of someone importing it, and it will be easier to read (as a private class method will indicate that only this class uses this method, and it should not be called publicly).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions