-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add importlib.resources.files for Python 3.9 #4807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Do I really have to create an |
|
As far as I can see, the problem is simply that |
|
Hmm I got confused by the error that "found module, but no stubs". 🤔 |
|
Thanks, this looks good to me! You'll need to add |
|
I'm somewhat confused by the remaining failures. |
abstractproperty has been deprecated for forever too
|
Thanks @hauntsaninja! |
srittau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks mostly good to me with one remark and a nit.
| @abstractmethod | ||
| def read_bytes(self) -> bytes: ... | ||
| @abstractmethod | ||
| def read_text(self, encoding: Optional[str] = ...) -> str: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: The docstring in the implementation is wrong: It says Read contents of self as bytes.
|
lol wat 😅 I think it needs whitelisting too? |
|
O_o That failure mode I haven't seen before. Sorry for the trouble! I opened google/pytype#757. |
No description provided.