From 9a0dcd569c4bf3ea41d87438b9ee1c1af205656d Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 23 Jan 2025 12:07:18 +0100 Subject: [PATCH] More signature updates --- panel/auth.py | 4 +-- panel/chat/utils.py | 4 +-- panel/interact.py | 4 +-- panel/io/application.py | 4 +-- panel/io/cache.py | 8 ++--- panel/io/compile.py | 28 +++++++++--------- panel/io/convert.py | 8 ++--- panel/io/datamodel.py | 8 ++--- panel/io/document.py | 16 +++++----- panel/io/embed.py | 4 +-- panel/io/fastapi.py | 16 +++++----- panel/io/handlers.py | 4 +-- panel/io/jupyter_server_extension.py | 4 +-- panel/io/loading.py | 8 ++--- panel/io/mime_render.py | 4 +-- panel/io/model.py | 4 +-- panel/io/notebook.py | 16 +++++----- panel/io/profile.py | 8 ++--- panel/io/pyodide.py | 44 ++++++++++++++-------------- panel/io/reload.py | 4 +-- panel/io/resources.py | 8 ++--- panel/io/rest.py | 8 ++--- panel/io/save.py | 8 ++--- panel/io/server.py | 12 ++++---- panel/pane/base.py | 4 +-- panel/pane/perspective.py | 4 +-- panel/param.py | 4 +-- panel/tests/util.py | 4 +-- panel/util/__init__.py | 4 +-- panel/util/checks.py | 4 +-- panel/viewable.py | 4 +-- panel/widgets/file_selector.py | 4 +-- panel/widgets/widget.py | 4 +-- 33 files changed, 136 insertions(+), 136 deletions(-) diff --git a/panel/auth.py b/panel/auth.py index e47759dd57..d9a55e18b8 100644 --- a/panel/auth.py +++ b/panel/auth.py @@ -41,8 +41,8 @@ def decode_response_body(response): """ Decodes the JSON-format response body - Arguments - --------- + Parameters + ---------- response: tornado.httpclient.HTTPResponse Returns diff --git a/panel/chat/utils.py b/panel/chat/utils.py index 5c061bb216..c1fda59ae6 100644 --- a/panel/chat/utils.py +++ b/panel/chat/utils.py @@ -87,8 +87,8 @@ def stream_to(obj, token: str, replace: bool = False, object_panel: Viewable | N in a layout of `Column(Markdown(...), Image(...))` the Markdown pane is updated. - Arguments - --------- + Parameters + ---------- token: str The token to stream to the text pane. replace: bool (default=False) diff --git a/panel/interact.py b/panel/interact.py index 810824d387..5535ec5cd9 100644 --- a/panel/interact.py +++ b/panel/interact.py @@ -236,8 +236,8 @@ class _InteractFactory: """ Factory for instances of :class:`interactive`. - Arguments - --------- + Parameters + ---------- cls: class The subclass of :class:`interactive` to construct. options: dict diff --git a/panel/io/application.py b/panel/io/application.py index 9df42317ec..5c1fff4bea 100644 --- a/panel/io/application.py +++ b/panel/io/application.py @@ -232,8 +232,8 @@ def build_applications( """ Converts a variety of objects into a dictionary of Applications. - Arguments - --------- + Parameters + ---------- panel: Viewable, function or {str: Viewable} A Panel object, a function returning a Panel object or a dictionary mapping from the URL slug to either. diff --git a/panel/io/cache.py b/panel/io/cache.py index 2a3be882e5..f8de277066 100644 --- a/panel/io/cache.py +++ b/panel/io/cache.py @@ -345,8 +345,8 @@ def compute_hash(func, hash_funcs, args, kwargs): """ Computes a hash given a function and its arguments. - Arguments - --------- + Parameters + ---------- func: callable The function to cache. hash_funcs: dict @@ -411,8 +411,8 @@ def cache( For global caching across user sessions use `pn.state.as_cached`. - Arguments - --------- + Parameters + ---------- func: callable The function to cache. hash_funcs: dict or None diff --git a/panel/io/compile.py b/panel/io/compile.py index c04b654c3f..a5024449b2 100644 --- a/panel/io/compile.py +++ b/panel/io/compile.py @@ -80,8 +80,8 @@ def find_module_bundles(module_spec: str) -> dict[pathlib.Path, list[ReactiveESM """ Takes module specifications and extracts a set of components to bundle. - Arguments - --------- + Parameters + ---------- module_spec: str Module specification either as a dotted module or a path to a module. @@ -138,8 +138,8 @@ def find_components(module_or_file: str | os.PathLike, classes: list[str] | None Creates a temporary module given a path-like object and finds all the ReactiveESM components defined therein. - Arguments - --------- + Parameters + ---------- module_or_file : str | os.PathLike The path to the Python module. classes: list[str] | None @@ -186,8 +186,8 @@ def packages_from_code(esm_code: str) -> tuple[str, dict[str, str]]: """ Extracts package version definitions from ESM code. - Arguments - --------- + Parameters + ---------- esm_code : str The ESM code to search for package imports. @@ -215,8 +215,8 @@ def replace_imports(esm_code: str, replacements: dict[str, str]) -> str: Replaces imports in the code which may be aliases with the actual package names. - Arguments - --------- + Parameters + ---------- esm_code: str The ESM code to replace import names in. replacements: dict[str, str] @@ -248,8 +248,8 @@ def packages_from_importmap(esm_code: str, imports: dict[str, str]) -> tuple[str """ Extracts package version definitions from an import map. - Arguments - --------- + Parameters + ---------- esm_code: str The ESM code to replace import names in. imports : dict[str, str] @@ -281,8 +281,8 @@ def extract_dependencies(component: type[ReactiveESM]) -> tuple[str, dict[str, A importmap and the associated code and replaces URL import specifiers with package imports. - Arguments - --------- + Parameters + ---------- component: type[ReactiveESM] The ReactiveESM component to extract a dependency definition from. @@ -406,8 +406,8 @@ def compile_components( Compiles a list of ReactiveESM components into a single JavaScript bundle including their Javascript dependencies. - Arguments - --------- + Parameters + ---------- components : list[type[ReactiveESM]] A list of `ReactiveESM` component classes to compile. build_dir : str | os.PathLike, optional diff --git a/panel/io/convert.py b/panel/io/convert.py index 3bc5bdd8f7..5f9a14c727 100644 --- a/panel/io/convert.py +++ b/panel/io/convert.py @@ -165,8 +165,8 @@ def script_to_html( Converts a Panel or Bokeh script to a standalone WASM Python application. - Arguments - --------- + Parameters + ---------- filename: str | Path | IO The filename of the Panel/Bokeh application to convert. requirements: 'auto' | List[str] | os.PathLike @@ -481,8 +481,8 @@ def convert_apps( verbose: bool = True, ): """ - Arguments - --------- + Parameters + ---------- apps: str | List[str] The filename(s) of the Panel/Bokeh application(s) to convert. dest_path: str | pathlib.Path diff --git a/panel/io/datamodel.py b/panel/io/datamodel.py index 85a19d4cc1..0246d270be 100644 --- a/panel/io/datamodel.py +++ b/panel/io/datamodel.py @@ -153,8 +153,8 @@ def construct_data_model(parameterized, name=None, ignore=[], types={}, extras={ Dynamically creates a Bokeh DataModel class from a Parameterized object. - Arguments - --------- + Parameters + ---------- parameterized: param.Parameterized The Parameterized class or instance from which to create the DataModel @@ -217,8 +217,8 @@ def create_linked_datamodel(obj, root=None): Creates a Bokeh DataModel from a Parameterized class or instance which automatically links the parameters bi-directionally. - Arguments - --------- + Parameters + ---------- obj: param.Parameterized The Parameterized class to create a linked DataModel for. diff --git a/panel/io/document.py b/panel/io/document.py index 9fd866ddd4..821d7dcc01 100644 --- a/panel/io/document.py +++ b/panel/io/document.py @@ -357,8 +357,8 @@ def with_lock(func: Callable) -> Callable: Wrap a callback function to execute with a lock allowing the function to modify bokeh models directly. - Arguments - --------- + Parameters + ---------- func: callable The callable to wrap @@ -441,8 +441,8 @@ def unlocked(policy: HoldPolicyType = 'combine') -> Iterator: ModelChangedEvents triggered in the context body to all sockets on current sessions. - Arguments - --------- + Parameters + ---------- policy: Literal['combine' | 'collect'] One of 'combine' or 'collect' determining whether events setting the same property are combined or accumulated to be @@ -537,8 +537,8 @@ def hold(doc: Document | None = None, policy: HoldPolicyType = 'combine', comm: manager exits. This allows multiple events on the same object to be combined if the policy is set to 'combine'. - Arguments - --------- + Parameters + ---------- doc: Document The Bokeh Document to hold events on. policy: HoldPolicyType @@ -578,8 +578,8 @@ def immediate_dispatch(doc: Document | None = None): inside the execution context even when Document events are currently on hold. - Arguments - --------- + Parameters + ---------- doc: Document The document to dispatch events on (if `None` then `state.curdoc` is used). """ diff --git a/panel/io/embed.py b/panel/io/embed.py index ad7e78edb9..1f76f029b1 100644 --- a/panel/io/embed.py +++ b/panel/io/embed.py @@ -188,8 +188,8 @@ def embed_state(panel, model, doc, max_states=1000, max_opts=3, be replayed when exported. The state is recorded on a State model which is attached as an additional root on the Document. - Arguments - --------- + Parameters + ---------- panel: panel.reactive.Reactive The Reactive component being exported model: bokeh.model.Model diff --git a/panel/io/fastapi.py b/panel/io/fastapi.py index 969e129616..95274ae7a8 100644 --- a/panel/io/fastapi.py +++ b/panel/io/fastapi.py @@ -91,8 +91,8 @@ def add_applications( """ Adds application(s) to an existing FastAPI application. - Arguments - --------- + Parameters + ---------- app: FastAPI FastAPI app to add Panel application(s) to. panel: Viewable, function or {str: Viewable} @@ -157,8 +157,8 @@ def add_application( """ Decorator that adds a Panel app to a FastAPI application. - Arguments - --------- + Parameters + ---------- path: str The path to serve the application on. app: FastAPI @@ -202,8 +202,8 @@ def get_server( """ Creates a FastAPI server running the provided Panel application(s). - Arguments - --------- + Parameters + ---------- panel: Viewable, function or {str: Viewable} A Panel object, a function returning a Panel object or a dictionary mapping from the URL slug to either. @@ -315,8 +315,8 @@ def serve( Reference: https://panel.holoviz.org/user_guide/Server_Configuration.html#serving-multiple-apps - Arguments - --------- + Parameters + ---------- panel: Viewable, function or {str: Viewable or function} A Panel object, a function returning a Panel object or a dictionary mapping from the URL slug to either. diff --git a/panel/io/handlers.py b/panel/io/handlers.py index 3293b1dea5..7da9f711d1 100644 --- a/panel/io/handlers.py +++ b/panel/io/handlers.py @@ -308,8 +308,8 @@ def parse_notebook( """ Parses a notebook on disk and returns a script. - Arguments - --------- + Parameters + ---------- filename: str | os.PathLike The notebook file to parse. preamble: list[str] diff --git a/panel/io/jupyter_server_extension.py b/panel/io/jupyter_server_extension.py index a4bd36bcdf..237604bd77 100644 --- a/panel/io/jupyter_server_extension.py +++ b/panel/io/jupyter_server_extension.py @@ -127,8 +127,8 @@ def generate_executor(path: str, token: str, root_url: str) -> str: Generates the code to instantiate a PanelExecutor that is to be be run on the kernel to start a server session. - Arguments - --------- + Parameters + ---------- path: str The path of the Panel application to execute. token: str diff --git a/panel/io/loading.py b/panel/io/loading.py index bb31f67deb..e69403fbe6 100644 --- a/panel/io/loading.py +++ b/panel/io/loading.py @@ -35,8 +35,8 @@ def start_loading_spinner(*objects): * disabling the panel * and changing the mouse cursor to a spinner when hovering over the panel - Arguments - --------- + Parameters + ---------- objects: tuple The panels to add the loading indicator to. """ @@ -49,8 +49,8 @@ def stop_loading_spinner(*objects): """ Removes the loading indicating from the specified panel objects. - Arguments - --------- + Parameters + ---------- objects: tuple The panels to remove the loading indicator from. """ diff --git a/panel/io/mime_render.py b/panel/io/mime_render.py index 22bf9a78f5..2fd6321a7a 100644 --- a/panel/io/mime_render.py +++ b/panel/io/mime_render.py @@ -131,8 +131,8 @@ def exec_with_return( Executes a code snippet and returns the resulting output of the last line. - Arguments - --------- + Parameters + ---------- code: str The code to execute global_context: Dict[str, Any] diff --git a/panel/io/model.py b/panel/io/model.py index 013ac6b361..a8fbf1b14f 100644 --- a/panel/io/model.py +++ b/panel/io/model.py @@ -181,8 +181,8 @@ def hold(doc: Document | None = None, policy: HoldPolicyType = 'combine', comm: manager exits. This allows multiple events on the same object to be combined if the policy is set to 'combine'. - Arguments - --------- + Parameters + ---------- doc: Document The Bokeh Document to hold events on. policy: HoldPolicyType diff --git a/panel/io/notebook.py b/panel/io/notebook.py index fe5ef15a09..fc43e19ea0 100644 --- a/panel/io/notebook.py +++ b/panel/io/notebook.py @@ -374,8 +374,8 @@ def push_notebook(*objs: Viewable) -> None: object. This is required when modifying any Bokeh object directly in a notebook session. - Arguments - --------- + Parameters + ---------- objs: panel.viewable.Viewable """ for obj in objs: @@ -447,8 +447,8 @@ def show_server(panel: Any, notebook_url: str, port: int = 0) -> Server: """ Displays a bokeh server inline in the notebook. - Arguments - --------- + Parameters + ---------- panel: Viewable Panel Viewable object to launch a server for notebook_url: str @@ -502,8 +502,8 @@ def render_embed( this will only work well for simple apps with a relatively small state space. - Arguments - --------- + Parameters + ---------- max_states: int The maximum number of states to embed max_opts: int @@ -542,8 +542,8 @@ def ipywidget(obj: Any, doc=None, **kwargs: Any): Requires `jupyter_bokeh` to be installed. - Arguments - --------- + Parameters + ---------- obj: object Any Panel object or object which can be rendered with Panel doc: bokeh.Document diff --git a/panel/io/profile.py b/panel/io/profile.py index 7dfb488242..d107bceffb 100644 --- a/panel/io/profile.py +++ b/panel/io/profile.py @@ -203,8 +203,8 @@ def profile_ctx(engine: ProfilingEngine = 'pyinstrument') -> Iterator[Sequence[P with the supplied profiling engine and returns the profiling object in a list. - Arguments - --------- + Parameters + ---------- engine: str The profiling engine, e.g. 'pyinstrument', 'snakeviz' or 'memray' @@ -249,8 +249,8 @@ def profile(name: str, engine: ProfilingEngine = 'pyinstrument') -> Callable[[Ca A decorator which may be added to any function to record profiling output. - Arguments - --------- + Parameters + ---------- name: str A unique name for the profiling session. engine: str diff --git a/panel/io/pyodide.py b/panel/io/pyodide.py index b1c52305d9..2d59951047 100644 --- a/panel/io/pyodide.py +++ b/panel/io/pyodide.py @@ -143,8 +143,8 @@ def _doc_json(doc: Document, root_els=None) -> tuple[str, str, str]: Document, the individual render_items and the ids of DOM nodes to render each item into. - Arguments - --------- + Parameters + ---------- doc: bokeh.document.Document The Bokeh document to serialize to JSON. root_els: @@ -174,8 +174,8 @@ def _model_json(viewable: Viewable | TemplateBase, target: str) -> tuple[Documen Renders a Bokeh Model to JSON representation given a particular DOM target and returns the Document and the serialized JSON string. - Arguments - --------- + Parameters + ---------- model: Viewable The bokeh model to render. target: str @@ -211,8 +211,8 @@ def _serialize_buffers(obj, buffers={}): Recursively iterates over a JSON patch and converts Buffer objects to a reference or base64 serialized representation. - Arguments - --------- + Parameters + ---------- obj: dict Dictionary containing events to patch the JS Document with. buffers: dict @@ -290,8 +290,8 @@ def _link_docs(pydoc: Document, jsdoc: Any) -> None: Links Python and JS documents in Pyodide ensuring that messages are passed between them. - Arguments - --------- + Parameters + ---------- pydoc: bokeh.document.Document The Python Bokeh Document instance to sync. jsdoc: Javascript Document @@ -336,8 +336,8 @@ def _link_docs_worker(doc: Document, dispatch_fn: Any, msg_id: str | None = None sync messages between a WebWorker and the main thread in the browser. - Arguments - --------- + Parameters + ---------- doc: bokeh.document.Document The document to dispatch messages from. dispatch_fn: JS function @@ -364,8 +364,8 @@ async def _link_model(ref: str, doc: Document) -> None: Links a rendered Bokeh model on the frontend to a Python Document in Python. - Arguments - --------- + Parameters + ---------- ref: str The ID of the rendered bokeh Model doc: bokeh.document.Document @@ -407,8 +407,8 @@ def render_script(obj: Any, target: ID) -> str: """ Generates a script to render the supplied object to the target. - Arguments - --------- + Parameters + ---------- obj: Viewable Object to render into the DOM node target: str @@ -453,8 +453,8 @@ async def show(obj: Any, target: str) -> None: """ Renders the object into a DOM node specified by the target. - Arguments - --------- + Parameters + ---------- obj: Viewable Object to render into the DOM node target: str @@ -468,8 +468,8 @@ async def write(target: str, obj: Any) -> None: """ Renders the object into a DOM node specified by the target. - Arguments - --------- + Parameters + ---------- target: str Target ID of the DOM node to render the object into. obj: Viewable @@ -518,8 +518,8 @@ async def write_doc(doc: Document | None = None) -> tuple[str, str, str]: If invoked by a WebWorker the JSON return values can be sent to the main thread for rendering. - Arguments - --------- + Parameters + ---------- doc: Document The document to render to JSON. @@ -565,8 +565,8 @@ def pyrender( Executes Python code and returns a MIME representation of the return value. - Arguments - --------- + Parameters + ---------- code: str Python code to execute stdout_callback: Callable[[str, str], None] | None diff --git a/panel/io/reload.py b/panel/io/reload.py index 0acf2172fd..72f1f159f3 100644 --- a/panel/io/reload.py +++ b/panel/io/reload.py @@ -256,8 +256,8 @@ def _check_file(path: str | os.PathLike, modify_times: dict[str | os.PathLike, i - 2: File modified - 3: File deleted - Arguments - --------- + Parameters + ---------- path: str | os.PathLike Path of the file to check for modification modify_times: dict[str, int] diff --git a/panel/io/resources.py b/panel/io/resources.py index 9ac9ff344e..dd7d233611 100644 --- a/panel/io/resources.py +++ b/panel/io/resources.py @@ -219,8 +219,8 @@ def resolve_custom_path( """ Attempts to resolve a path relative to some component. - Arguments - --------- + Parameters + ---------- obj: type | object The component to resolve the path relative to. path: str | os.PathLike @@ -309,8 +309,8 @@ def resolve_stylesheet(cls, stylesheet: str, attribute: str | None = None): - A path relative to the component - A raw css string - Arguments - --------- + Parameters + ---------- cls: type | object Object or class defining the stylesheet stylesheet: str diff --git a/panel/io/rest.py b/panel/io/rest.py index 47ecc7f904..e73c173e21 100644 --- a/panel/io/rest.py +++ b/panel/io/rest.py @@ -109,8 +109,8 @@ def tranquilizer_rest_provider(files, endpoint): the scripts and notebooks being served and finding all tranquilized functions inside them. - Arguments - --------- + Parameters + ---------- files: list(str) A list of paths being served endpoint: str @@ -130,8 +130,8 @@ def param_rest_provider(files, endpoint): Returns a Param based REST API given the scripts or notebooks containing the tranquilized functions. - Arguments - --------- + Parameters + ---------- files: list(str) A list of paths being served endpoint: str diff --git a/panel/io/save.py b/panel/io/save.py index 494c0af429..9832fa7a14 100644 --- a/panel/io/save.py +++ b/panel/io/save.py @@ -69,8 +69,8 @@ def save_png( """ Saves a bokeh model to png - Arguments - --------- + Parameters + ---------- model: bokeh.model.Model Model to save to png filename: str @@ -186,8 +186,8 @@ def save( """ Saves Panel objects to file. - Arguments - --------- + Parameters + ---------- panel: Viewable The Panel Viewable to save to file filename: str or file-like object diff --git a/panel/io/server.py b/panel/io/server.py index a6cdabf28a..4a8a0573f3 100644 --- a/panel/io/server.py +++ b/panel/io/server.py @@ -201,8 +201,8 @@ def html_page_for_render_items( """ Render an HTML page from a template and Bokeh render items. - Arguments - --------- + Parameters + ---------- bundle (tuple): A tuple containing (bokehjs, bokehcss) docs_json (JSON-like): @@ -735,8 +735,8 @@ def serve( Reference: https://panel.holoviz.org/user_guide/Server_Configuration.html#serving-multiple-apps - Arguments - --------- + Parameters + ---------- panels: Viewable, function or {str: Viewable or function} A Panel object, a function returning a Panel object or a dictionary mapping from the URL slug to either. @@ -874,8 +874,8 @@ def get_server( Returns a Server instance with this panel attached as the root app. - Arguments - --------- + Parameters + ---------- panel: Viewable, function or {str: Viewable} A Panel object, a function returning a Panel object or a dictionary mapping from the URL slug to either. diff --git a/panel/pane/base.py b/panel/pane/base.py index 702435b436..b00870e819 100644 --- a/panel/pane/base.py +++ b/panel/pane/base.py @@ -62,8 +62,8 @@ def panel(obj: Any, **kwargs) -> Viewable | ServableMixin: >>> pn.panel(some_python_object, width=500) - Arguments - --------- + Parameters + ---------- obj: object Any object to be turned into a Panel **kwargs: dict diff --git a/panel/pane/perspective.py b/panel/pane/perspective.py index 2782f5eaa0..3fa80a11a1 100644 --- a/panel/pane/perspective.py +++ b/panel/pane/perspective.py @@ -79,8 +79,8 @@ def deconstruct_pandas(data, kwargs=None): https://github.com/finos/perspective/blob/master/python/perspective/perspective/core/data/pd.py - Arguments - --------- + Parameters + ---------- data: (pandas.dataframe) A Pandas DataFrame to parse diff --git a/panel/param.py b/panel/param.py index 3394a67f9c..866ef589e5 100644 --- a/panel/param.py +++ b/panel/param.py @@ -98,8 +98,8 @@ def set_values(*parameterizeds, **param_values): Temporarily sets parameter values to the specified values on all supplied Parameterized objects. - Arguments - --------- + Parameters + ---------- parameterizeds: tuple(param.Parameterized) Any number of parameterized objects. param_values: dict diff --git a/panel/tests/util.py b/panel/tests/util.py index 4c41a58f69..cfa5e3063f 100644 --- a/panel/tests/util.py +++ b/panel/tests/util.py @@ -443,8 +443,8 @@ def http_serve_directory(directory=".", port=0): conditions when trying to bind to an open port that turns out not to be free after all. The hostname is always "localhost". - Arguments - ---------- + Parameters + ----------- directory : str, optional The directory to server files from. Defaults to the current directory. port : int, optional diff --git a/panel/util/__init__.py b/panel/util/__init__.py index 326df8b074..735a238ba5 100644 --- a/panel/util/__init__.py +++ b/panel/util/__init__.py @@ -447,8 +447,8 @@ def styler_update(styler, new_df): Updates the todo items on a pandas Styler object to apply to a new DataFrame. - Arguments - --------- + Parameters + ---------- styler: pandas.io.formats.style.Styler Styler objects new_df: pd.DataFrame diff --git a/panel/util/checks.py b/panel/util/checks.py index e90a4336b8..622fe31225 100644 --- a/panel/util/checks.py +++ b/panel/util/checks.py @@ -130,8 +130,8 @@ def import_available(module: str): """ Checks whether a module can be imported - Arguments - --------- + Parameters + ---------- module: str Returns diff --git a/panel/viewable.py b/panel/viewable.py index ca2e67c57f..0250e0e16d 100644 --- a/panel/viewable.py +++ b/panel/viewable.py @@ -1232,8 +1232,8 @@ def is_viewable_param(parameter: param.Parameter) -> bool: """ Determines if a parameter uniquely identifies a Viewable type. - Arguments - --------- + Parameters + ---------- parameter : param.Parameter The parameter to evaluate. diff --git a/panel/widgets/file_selector.py b/panel/widgets/file_selector.py index 15a6799af8..42f83b11e6 100644 --- a/panel/widgets/file_selector.py +++ b/panel/widgets/file_selector.py @@ -39,8 +39,8 @@ def _scan_path(path: str, file_pattern: str = '*') -> tuple[list[str], list[str] filters the files with the file keyword, returning a list of sorted paths of all directories and files. - Arguments - --------- + Parameters + ---------- path: str The path to search file_pattern: str diff --git a/panel/widgets/widget.py b/panel/widgets/widget.py index 628d1cde87..92a4661f78 100644 --- a/panel/widgets/widget.py +++ b/panel/widgets/widget.py @@ -86,8 +86,8 @@ class widget(param.ParameterizedFunction): """ Attempts to find a widget appropriate for a given value. - Arguments - --------- + Parameters + ---------- name: str The name of the resulting widget. value: Any