Skip to content

Commit

Permalink
rm NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Sep 13, 2024
1 parent cd2ed40 commit eb1468e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/dtypes_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from datetime import timezone
from types import NoneType
from typing import Literal

import pytest
Expand All @@ -17,7 +16,7 @@ def test_datetime_valid(
dtype = nw.Datetime(time_unit=time_unit, time_zone=time_zone)

assert dtype.time_unit == time_unit
assert isinstance(dtype.time_zone, (str, NoneType))
assert isinstance(dtype.time_zone, str) or dtype.time_zone is None


@pytest.mark.parametrize("time_unit", ["abc", "s"])
Expand Down

0 comments on commit eb1468e

Please sign in to comment.