1515from .meta import Meta , MetaRaw , MetaFactory
1616from .errors import PinsError
1717from .drivers import load_data , save_data , default_title
18- from .utils import inform
18+ from .utils import inform , ExtendMethodDoc
1919from .config import get_allow_rsc_short_name
2020
2121
@@ -650,12 +650,15 @@ def __init__(self, *args, pin_paths: dict, **kwargs):
650650
651651 # return super().pin_read(*args, **kwargs)
652652
653+ @ExtendMethodDoc
653654 def pin_list (self ):
654655 return list (self .pin_paths )
655656
657+ @ExtendMethodDoc
656658 def pin_versions (self , * args , ** kwargs ):
657659 raise NotImplementedError ("This board does not support pin_versions." )
658660
661+ @ExtendMethodDoc
659662 def pin_meta (self , name , version = None ):
660663 if version is not None :
661664 raise NotImplementedError ()
@@ -680,6 +683,7 @@ def pin_meta(self, name, version=None):
680683
681684 return meta
682685
686+ @ExtendMethodDoc
683687 def pin_download (self , name , version = None , hash = None ) -> Sequence [str ]:
684688 meta = self .pin_meta (name , version )
685689
@@ -723,6 +727,7 @@ class BoardRsConnect(BaseBoard):
723727
724728 # defaults work ----
725729
730+ @ExtendMethodDoc
726731 def pin_list (self ):
727732 # lists all pin content on RStudio Connect server
728733 # we can't use fs.ls, because it will list *all content*
@@ -732,7 +737,15 @@ def pin_list(self):
732737 names = [f"{ cont ['owner_username' ]} /{ cont ['name' ]} " for cont in results ]
733738 return names
734739
735- def pin_write (self , * args , ** kwargs ):
740+ @ExtendMethodDoc
741+ def pin_write (self , * args , access_type = None , ** kwargs ):
742+ """Write a pin.
743+
744+ Extends parent method in the following ways:
745+
746+ * Modifies content item to include any title and description changes.
747+ * Adds access_type argument to specify who can see content. Defaults to "acl".
748+ """
736749
737750 # run parent function ---
738751
@@ -757,6 +770,7 @@ def pin_write(self, *args, **kwargs):
757770
758771 return meta
759772
773+ @ExtendMethodDoc
760774 def pin_search (self , search = None , as_df = True ):
761775 from pins .rsconnect .api import RsConnectApiRequestError
762776
@@ -793,6 +807,7 @@ def pin_search(self, search=None, as_df=True):
793807
794808 return res
795809
810+ @ExtendMethodDoc
796811 def pin_version_delete (self , * args , ** kwargs ):
797812 from pins .rsconnect .api import RsConnectApiRequestError
798813
@@ -804,6 +819,7 @@ def pin_version_delete(self, *args, **kwargs):
804819
805820 raise PinsError ("RStudio Connect cannot delete the latest pin version." )
806821
822+ @ExtendMethodDoc
807823 def pin_versions_prune (self , * args , ** kwargs ):
808824 sig = inspect .signature (super ().pin_versions_prune )
809825 if sig .bind (* args , ** kwargs ).arguments .get ("days" ) is not None :
0 commit comments