@@ -133,8 +133,7 @@ def pin_meta(self, name, version: str = None) -> Meta:
133
133
# ensure pin and version exist
134
134
if not self .fs .exists (self .construct_path ([pin_name , version ])):
135
135
raise PinsError (
136
- f"Pin { name } either does not exist, "
137
- f"or is missing version: { version } ."
136
+ f"Pin { name } either does not exist, or is missing version: { version } ."
138
137
)
139
138
140
139
selected_version = guess_version (version )
@@ -881,9 +880,10 @@ class BoardManual(BaseBoard):
881
880
--------
882
881
>>> import fsspec
883
882
>>> import os
884
- >>> fs = fsspec.filesystem("github ", org = "rstudio", repo = "pins-python" )
883
+ >>> fs = fsspec.filesystem("http ", block_size=0 )
885
884
>>> pin_paths = {"df_csv": "df_csv/20220214T163720Z-9bfad/"}
886
- >>> board = BoardManual("pins/tests/pins-compat", fs, pin_paths=pin_paths)
885
+ >>> url = "https://raw.githubusercontent.com/rstudio/pins-python/main/pins/tests/pins-compat"
886
+ >>> board = BoardManual(url, fs, pin_paths=pin_paths)
887
887
888
888
>>> board.pin_list()
889
889
['df_csv']
@@ -984,7 +984,6 @@ def construct_path(self, elements):
984
984
return "/" .join (pre_components + [pin_path ])
985
985
elif len (others ) == 2 :
986
986
version , meta = others
987
-
988
987
return "/" .join (pre_components + [stripped , meta ])
989
988
990
989
raise NotImplementedError (
0 commit comments