-
Notifications
You must be signed in to change notification settings - Fork 68
Type clone.py node functions #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
c30c178
d386d35
d9b5496
94acb90
91e0374
9d5b7f6
5c95524
e3fd785
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ | |
| from io import BufferedIOBase, BytesIO, TextIOBase, UnsupportedOperation | ||
| from logging import WARNING, Logger, getLogger | ||
| from pathlib import Path | ||
| from typing import IO, List, Optional, Union, cast | ||
| from typing import IO, BinaryIO, List, Optional, Union, cast | ||
| from urllib import request | ||
| from urllib.error import HTTPError | ||
|
|
||
|
|
@@ -113,7 +113,7 @@ def get_rdf_from_web(url: Union[rdflib.URIRef, str]): | |
|
|
||
|
|
||
| def load_from_source( | ||
| source: Union[GraphLike, BufferedIOBase, TextIOBase, str, bytes], | ||
| source: Union[GraphLike, BufferedIOBase, TextIOBase, BinaryIO, str, bytes], | ||
| g: Optional[GraphLike] = None, | ||
| rdf_format: Optional[str] = None, | ||
| multigraph: bool = False, | ||
|
|
@@ -139,7 +139,7 @@ def load_from_source( | |
| :return: | ||
| """ | ||
| source_is_graph = False | ||
| open_source: Optional[BufferedIOBase] = None | ||
| open_source: Optional[Union[BufferedIOBase, BinaryIO]] = None | ||
|
||
| source_was_open: bool = False | ||
| source_as_file: Optional[BufferedIOBase] = None | ||
| source_as_filename: Optional[str] = None | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.