src/schemathesis/loaders.py
def from_file(
    file: Union[IO[str], str],
    location: Optional[str] = None,
    base_url: Optional[str] = None,
    method: Optional[Filter] = None,
    endpoint: Optional[Filter] = None,
    tag: Optional[Filter] = None,
    *,
    app: Any = None,
) -> BaseSchema:
    """Load a file content and parse to schema instance.

    `file` could be a file descriptor, string or bytes.
    """
    raw = yaml.load(file, StringDatesYAMLLoader)
    return from_dict(raw, location=location, base_url=base_url, method=method, endpoint=endpoint, tag=tag, app=app)
Load a file content and parse to schema instance.

    `file` could be a file descriptor, string or bytes.
    
Load a file content and parse to schema instance.
`file` could be a file descriptor, string or bytes.
Load a file content and parse to schema instance . ` file ` could be a file descriptor string or bytes .
def from_file(
    file: Union[IO[str], str],
    location: Optional[str] = None,
    base_url: Optional[str] = None,
    method: Optional[Filter] = None,
    endpoint: Optional[Filter] = None,
    tag: Optional[Filter] = None,
    *,
    app: Any = None,
) -> BaseSchema:
    raw = yaml.load(file, StringDatesYAMLLoader)
    return from_dict(raw, location=location, base_url=base_url, method=method, endpoint=endpoint, tag=tag, app=app)
def from_file ( file : Union [ IO [ str ] , str ] , location : Optional [ str ] = None , base_url : Optional [ str ] = None , method : Optional [ Filter ] = None , endpoint : Optional [ Filter ] = None , tag : Optional [ Filter ] = None , * , app : Any = None , ) -> BaseSchema : raw = yaml . load ( file , StringDatesYAMLLoader ) return from_dict ( raw , location = location , base_url = base_url , method = method , endpoint = endpoint , tag = tag , app = app )
Load a file content and parse to schema instance.
Load a file content and parse to schema instance .
"""Load a file content and parse to schema instance.

    `file` could be a file descriptor, string or bytes.
    """
file
Union[IO[str], str]
location
Optional[str]
base_url
Optional[str]
method
Optional[Filter]
endpoint
Optional[Filter]
tag
Optional[Filter]
app
Any