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
@@ -732,7 +732,15 @@ def pin_list(self):
732732 names = [f"{ cont ['owner_username' ]} /{ cont ['name' ]} " for cont in results ]
733733 return names
734734
735- def pin_write (self , * args , ** kwargs ):
735+ @ExtendMethodDoc
736+ def pin_write (self , * args , access_type = None , ** kwargs ):
737+ """Write a pin.
738+
739+ Extends parent method in the following ways:
740+
741+ * Modifies content item to include any title and description changes.
742+ * Adds access_type argument to specify who can see content. Defaults to "acl".
743+ """
736744
737745 # run parent function ---
738746
@@ -757,6 +765,7 @@ def pin_write(self, *args, **kwargs):
757765
758766 return meta
759767
768+ @ExtendMethodDoc
760769 def pin_search (self , search = None , as_df = True ):
761770 from pins .rsconnect .api import RsConnectApiRequestError
762771
@@ -793,6 +802,7 @@ def pin_search(self, search=None, as_df=True):
793802
794803 return res
795804
805+ @ExtendMethodDoc
796806 def pin_version_delete (self , * args , ** kwargs ):
797807 from pins .rsconnect .api import RsConnectApiRequestError
798808
@@ -804,6 +814,7 @@ def pin_version_delete(self, *args, **kwargs):
804814
805815 raise PinsError ("RStudio Connect cannot delete the latest pin version." )
806816
817+ @ExtendMethodDoc
807818 def pin_versions_prune (self , * args , ** kwargs ):
808819 sig = inspect .signature (super ().pin_versions_prune )
809820 if sig .bind (* args , ** kwargs ).arguments .get ("days" ) is not None :
0 commit comments