From 05335e21ab13381951600db787f016d03ef1b883 Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Tue, 24 Oct 2023 15:11:05 -0700 Subject: [PATCH] drop example for os.sep, not needed --- src/pyhf/schema/loader.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/pyhf/schema/loader.py b/src/pyhf/schema/loader.py index 0562af0960..920766c4dc 100644 --- a/src/pyhf/schema/loader.py +++ b/src/pyhf/schema/loader.py @@ -19,7 +19,7 @@ def load_schema(schema_id: str): Args: schema_id (str): Relative path to schema from :attr:`pyhf.schema.path` - Examples: + Example: >>> import pyhf >>> schema = pyhf.schema.load_schema("1.0.0/defs.json") >>> type(schema) @@ -31,18 +31,6 @@ def load_schema(schema_id: str): ... pyhf.exceptions.SchemaNotFound: ... - >>> import pyhf - >>> import os - >>> schema = pyhf.schema.load_schema(f"1.0.0{os.sep}defs.json") - >>> type(schema) - - >>> schema.keys() - dict_keys(['$schema', '$id', 'definitions']) - >>> pyhf.schema.load_schema(f"0.0.0{os.sep}defs.json") # doctest: +ELLIPSIS - Traceback (most recent call last): - ... - pyhf.exceptions.SchemaNotFound: ... - Returns: schema (dict): The loaded schema.