Skip to content

Commit

Permalink
Drop colour.utilities.is_string usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Jul 5, 2024
1 parent 48a1af4 commit 77581ad
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions colour_datasets/loaders/dyer2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from colour import MultiSpectralDistributions, SpectralDistribution
from colour.continuous import MultiSignals, Signal
from colour.hints import Any, Dict, Literal
from colour.utilities import attest, is_numeric, is_string, optional
from colour.utilities import attest, is_numeric, optional

from colour_datasets.loaders import AbstractDatasetLoader
from colour_datasets.records import datasets
Expand Down Expand Up @@ -168,7 +168,7 @@ def schema_version(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"schema_version" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -198,7 +198,7 @@ def catalog_number(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"catalog_number" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -228,7 +228,7 @@ def description(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"description" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -258,7 +258,7 @@ def document_creator(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"document_creator" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -288,7 +288,7 @@ def unique_identifier(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"unique_identifier" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -318,7 +318,7 @@ def measurement_equipment(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"measurement_equipment" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -348,7 +348,7 @@ def laboratory(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"laboratory" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -378,7 +378,7 @@ def document_creation_date(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"document_creation_date" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -408,7 +408,7 @@ def comments(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"comments" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -438,7 +438,7 @@ def license(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"license" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -627,7 +627,7 @@ def path(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"path" property: "{value}" type is not "str"!',
)
self._path = value
Expand Down Expand Up @@ -719,7 +719,7 @@ def units(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"units" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -784,7 +784,7 @@ def reflection_geometry(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"reflection_geometry" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -819,7 +819,7 @@ def transmission_geometry(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"transmission_geometry" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -1125,7 +1125,7 @@ def path(self, value: str | None):

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"path" property: "{value}" type is not "str"!',
)
self._path = value
Expand Down Expand Up @@ -1217,7 +1217,7 @@ def units(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"units" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -1282,7 +1282,7 @@ def reflection_geometry(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"reflection_geometry" property: "{value}" type is not "str"!',
)

Expand Down Expand Up @@ -1317,7 +1317,7 @@ def transmission_geometry(

if value is not None:
attest(
is_string(value),
isinstance(value, str),
f'"transmission_geometry" property: "{value}" type is not "str"!',
)

Expand Down

0 comments on commit 77581ad

Please sign in to comment.