You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test.py:1:0: C0114: Missing module docstring (missing-module-docstring)
test.py:4:6: E1101: Instance of 'OpenFiles' has no 'path' member (no-member)
For some reason, pylint seems to think that open returns OpenFiles, but it actually returns OpenFile. Could it be that the type information is somehow incorrect? The program runs fine, so it definitely is a false positive.
The text was updated successfully, but these errors were encountered:
Could it be that the type information is somehow incorrect?
Certainly can be. In fact, the function is not typed. It returns fsspec.open_files(...)[0], i.e., OpenFiles[0]. getitem on OpenFiles can return OpenFiles for a slice, or a single OpenFile for an integer. Make of that what you like.
Hi,
I'm trying to use fsspec, but I cannot convince pylint of the correctness of my program:
Calling
pylint test.py
yields:For some reason, pylint seems to think that
open
returnsOpenFiles
, but it actually returnsOpenFile
. Could it be that the type information is somehow incorrect? The program runs fine, so it definitely is a false positive.The text was updated successfully, but these errors were encountered: