Skip to content

Commit 8729d26

Browse files
committed
Added period at the end of a sentence in an exception message, to make it consistent with other similar sentences.
Signed-off-by: Kosta Ilic <[email protected]>
1 parent f066a12 commit 8729d26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nitypes/scalar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Scalar(Generic[TScalar_co]):
9999
>>> s1 < s2
100100
Traceback (most recent call last):
101101
...
102-
TypeError: Comparing Scalar objects of numeric and string types is not permitted
102+
TypeError: Comparing Scalar objects of numeric and string types is not permitted.
103103
104104
Class members
105105
^^^^^^^^^^^^^
@@ -277,4 +277,4 @@ def _check_units_equal_for_comparison(self, other_units: str) -> None:
277277
raise ValueError("Comparing Scalar objects with different units is not permitted.")
278278

279279
def _comparing_numeric_and_string_not_permitted(self) -> TypeError:
280-
return TypeError("Comparing Scalar objects of numeric and string types is not permitted")
280+
return TypeError("Comparing Scalar objects of numeric and string types is not permitted.")

0 commit comments

Comments
 (0)