@@ -161,7 +161,7 @@ def open(path, mode='r', destpath=os.curdir, encoding=None, newline=None):
161
161
162
162
Parameters
163
163
----------
164
- path : str
164
+ path : str or pathlib.Path
165
165
Local file path or URL to open.
166
166
mode : str, optional
167
167
Mode to open `path`. Mode 'r' for reading, 'w' for writing, 'a' to
@@ -382,7 +382,7 @@ def abspath(self, path):
382
382
383
383
Parameters
384
384
----------
385
- path : str
385
+ path : str or pathlib.Path
386
386
Can be a local file or a remote URL.
387
387
388
388
Returns
@@ -442,7 +442,7 @@ def exists(self, path):
442
442
443
443
Parameters
444
444
----------
445
- path : str
445
+ path : str or pathlib.Path
446
446
Can be a local file or a remote URL.
447
447
448
448
Returns
@@ -493,7 +493,7 @@ def open(self, path, mode='r', encoding=None, newline=None):
493
493
494
494
Parameters
495
495
----------
496
- path : str
496
+ path : str or pathlib.Path
497
497
Local file path or URL to open.
498
498
mode : {'r', 'w', 'a'}, optional
499
499
Mode to open `path`. Mode 'r' for reading, 'w' for writing,
@@ -604,7 +604,7 @@ def abspath(self, path):
604
604
605
605
Parameters
606
606
----------
607
- path : str
607
+ path : str or pathlib.Path
608
608
Can be a local file or a remote URL. This may, but does not
609
609
have to, include the `baseurl` with which the `Repository` was
610
610
initialized.
@@ -631,7 +631,7 @@ def exists(self, path):
631
631
632
632
Parameters
633
633
----------
634
- path : str
634
+ path : str or pathlib.Path
635
635
Can be a local file or a remote URL. This may, but does not
636
636
have to, include the `baseurl` with which the `Repository` was
637
637
initialized.
@@ -660,7 +660,7 @@ def open(self, path, mode='r', encoding=None, newline=None):
660
660
661
661
Parameters
662
662
----------
663
- path : str
663
+ path : str or pathlib.Path
664
664
Local file path or URL to open. This may, but does not have to,
665
665
include the `baseurl` with which the `Repository` was
666
666
initialized.
@@ -689,7 +689,7 @@ def listdir(self):
689
689
690
690
Returns
691
691
-------
692
- files : list of str
692
+ files : list of str or pathlib.Path
693
693
List of file names (not containing a directory part).
694
694
695
695
Notes
0 commit comments