Commit b532078
added type guards for MemoryFileSystem and name property to MemoryFile class (#1574)
* fix: _strip_protocol to stringify path
* Use rsplit instead of split for name in MemoryFile
* Added test, altered _strip_protocol to correct windows paths
* Removed redundant check from prior commit
* fix liint issues
* Update fsspec/implementations/tests/test_memory.py
Co-authored-by: Martin Durant <[email protected]>
* Rolled back name property in MemoryFileSystem
* Update fsspec/implementations/memory.py
Co-authored-by: Martin Durant <[email protected]>
* Changed memory file system to only accept PurePosixPath
* Handle PureWindowsPath in memfs
* Separated path tests to be platform specific, allowed for c:/ to show in memoryfs paths
* formatted code using black
* Moved imports in test_memory to fix lint issues
* Fixed import order in memory.py
---------
Co-authored-by: Martin Durant <[email protected]>1 parent 346a589 commit b532078
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
28 | 37 | | |
29 | 38 | | |
30 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
363 | 364 | | |
364 | 365 | | |
365 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
0 commit comments