Mercurial > code > home > repos > rdfdb
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stubs/rdflib/parser.pyi Sat May 25 02:53:14 2019 +0000 @@ -0,0 +1,26 @@ +# Stubs for rdflib.parser (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any +from io import StringIO as BytesIO + +class Parser: + def __init__(self): ... + def parse(self, source, sink): ... + +class InputSource: # subclass of xmlreader + ... + + +class StringInputSource(InputSource): + def __init__(self, value, system_id=None): ... + +class URLInputSource(InputSource): + url = ... # type: Any + content_type = ... # type: Any + def __init__(self, system_id=None, format=None): ... + +class FileInputSource(InputSource): + file = ... # type: Any + def __init__(self, file): ...