Skip to content

Comments

store path in self.path (currently it's always None)#3

Open
davidc wants to merge 3 commits intomcb30:masterfrom
davidc:master
Open

store path in self.path (currently it's always None)#3
davidc wants to merge 3 commits intomcb30:masterfrom
davidc:master

Conversation

@davidc
Copy link

@davidc davidc commented Jul 2, 2022

No description provided.

Copy link
Owner

@mcb30 mcb30 left a comment

Choose a reason for hiding this comment

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

This goes against the idea that path is an optional InitVar that the caller may use to initialise file. There is nothing within HmrcTokenFileStorage that requires a file with an associated path: only a file-like object is needed.

At a minimum, the patch would have to also remove the InitVar declaration.

What is the motivation for having an HmrcTokenFileStorage object expose the path to the token?

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.

2 participants