From 1317fef2371f3326cd60a99df6943ebe98c5db56 Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 9 Nov 2022 11:32:22 +0100 Subject: [PATCH] Fixes Python type annotation Mypy is slightly stricter now --- python/src/model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/model.rs b/python/src/model.rs index 95c61d53..a57c6286 100644 --- a/python/src/model.rs +++ b/python/src/model.rs @@ -221,9 +221,9 @@ impl PyBlankNode { /// :param value: the literal value or `lexical form `_. /// :type value: str /// :param datatype: the literal `datatype IRI `_. -/// :type datatype: NamedNode, optional +/// :type datatype: NamedNode or None, optional /// :param language: the literal `language tag `_. -/// :type language: str, optional +/// :type language: str or None, optional /// :raises ValueError: if the language tag is not valid according to `RFC 5646 `_ (`BCP 47 `_). /// /// The :py:func:`str` function provides a serialization compatible with NTriples, Turtle, and SPARQL: