Mercurial > code > home > repos > rdfdb
comparison stubs/rdflib/parser.pyi @ 33:4f71d2a7a8d1
some low-quality mostly generated mypy stubs. should be shared with my other builds
Ignore-this: 99c013ca3860da8917b3ca52c24308fc
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 25 May 2019 02:53:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
32:c8cf9d85fa81 | 33:4f71d2a7a8d1 |
---|---|
1 # Stubs for rdflib.parser (Python 3.4) | |
2 # | |
3 # NOTE: This dynamically typed stub was automatically generated by stubgen. | |
4 | |
5 from typing import Any | |
6 from io import StringIO as BytesIO | |
7 | |
8 class Parser: | |
9 def __init__(self): ... | |
10 def parse(self, source, sink): ... | |
11 | |
12 class InputSource: # subclass of xmlreader | |
13 ... | |
14 | |
15 | |
16 class StringInputSource(InputSource): | |
17 def __init__(self, value, system_id=None): ... | |
18 | |
19 class URLInputSource(InputSource): | |
20 url = ... # type: Any | |
21 content_type = ... # type: Any | |
22 def __init__(self, system_id=None, format=None): ... | |
23 | |
24 class FileInputSource(InputSource): | |
25 file = ... # type: Any | |
26 def __init__(self, file): ... |