summaryrefslogtreecommitdiff
path: root/rdflib/exceptions.py
Commit message (Collapse)AuthorAgeFilesLines
* feat: add parser type hints (#2232)Iwan Aucamp2023-03-051-5/+9
| | | | | | | | | | | | | Add type hints to: - `rdflib/parser.py` - `rdflib/plugins/parser/*.py` - some JSON-LD utils - `rdflib/exceptions.py`. This is mainly because the work I'm doing to fix <https://github.com/RDFLib/rdflib/issues/1844> is touching some of this parser stuff and the type hints are useful to avoid mistakes. No runtime changes are included in this PR.
* Remove `(TypeCheck|SubjectType|PredicateType|ObjectType)Error` and relatedIwan Aucamp2022-04-141-60/+0
| | | | | | | | | | | | | Also remove `check_(context|subject|predicate|object|statement|pattern)`. It seems nothing is using these exceptions and functions. Technically this does remove parts of the public API, but I would argue they are "buggy" parts as anything that use them would be sorely disappointed to find that the behaviour is not as expect, and these functions/exceptions don't serve any function related to the aim of RDFLib unless they are integrated with the rest of RDFLib.
* blacked all python filesNicholas Car2020-05-161-14/+32
|
* a slightly opinionated autopep8 runGunnar Aastrand Grimnes2018-10-301-0/+7
| | | | | | | | opinions is mainly: no to long lines, but not at any cost. notation3.py crashses autopep :D Also rdflib/__init__.py gets completely broken
* apply autopep8 standards.Graham Higgins2013-01-111-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | $ flake8 rdflib --exclude=pyRdfa,host,extras,transform,rdfs,pyMicrodata rdflib/graph.py:192: W801 redefinition of unused 'BytesIO' from line 189 rdflib/graph.py:194: W402 'BytesIO' imported but unused rdflib/graph.py:680:80: E501 line too long (80 > 79 characters) rdflib/graph.py:682:80: E501 line too long (80 > 79 characters) rdflib/graph.py:686:80: E501 line too long (83 > 79 characters) rdflib/graph.py:690:80: E501 line too long (83 > 79 characters) rdflib/graph.py:692:80: E501 line too long (83 > 79 characters) rdflib/graph.py:695:80: E501 line too long (83 > 79 characters) rdflib/graph.py:698:80: E501 line too long (83 > 79 characters) rdflib/parser.py:21: W801 redefinition of unused 'BytesIO' from line 19 rdflib/compat.py:12: W801 redefinition of unused 'defaultdict' from line 10 rdflib/py3compat.py:10: W801 redefinition of unused 'wraps' from line 7 rdflib/py3compat.py:81: W806 redefinition of function 'b' from line 44 rdflib/py3compat.py:87: W806 redefinition of function 'format_doctest_out' from line 50 rdflib/py3compat.py:97: W806 redefinition of function 'type_cmp' from line 61 rdflib/term.py:54: W801 redefinition of unused 'md5' from line 52 rdflib/store.py:73: W801 redefinition of unused 'BytesIO' from line 71 rdflib/query.py:10: W801 redefinition of unused 'BytesIO' from line 8 rdflib/__init__.py:73: W402 'plugin' imported but unused rdflib/__init__.py:74: W402 'query' imported but unused rdflib/util.py:43: W806 redefinition of function 'sign' from line 50 rdflib/plugins/parsers/hturtle.py:25: W801 redefinition of unused 'html5lib' from line 24 rdflib/plugins/parsers/ntriples.py:141: W402 'BytesIO' imported but unused rdflib/plugins/parsers/structureddata.py:23: W801 redefinition of unused 'html5lib' from line 22
* Uncomment __all__, tests do all passGraham Higgins2012-01-161-1/+1
|
* __all__ together nowGraham Higgins2012-01-141-0/+2
|
* Update issue 123eikeon2010-03-121-2/+8
| | | | Fixed a few small pylint issues; more to come.
* removed unused exceptionseikeon2007-03-231-23/+0
|
* removed trailing spacesogrisel2006-06-251-2/+2
|
* small fix to len and valueeikeon2005-04-121-2/+2
|
* added value and supporting funceikeon2005-04-031-0/+7
|
* inital import into svn from cvsunknown2003-12-181-0/+79