MCPcopy
hub / github.com/pandas-dev/pandas / validate_attr

Method validate_attr

pandas/io/pytables.py:2375–2382  ·  view source on GitHub ↗
(self, append: bool)

Source from the content-addressed store, hash-verified

2373 return None
2374
2375 def validate_attr(self, append: bool) -> None:
2376 # check for backwards incompatibility
2377 if append:
2378 existing_kind = getattr(self.attrs, self.kind_attr, None)
2379 if existing_kind is not None and existing_kind != self.kind:
2380 raise TypeError(
2381 f"incompatible kind in col [{existing_kind} - {self.kind}]"
2382 )
2383
2384 def update_info(self, info) -> None:
2385 """

Callers 1

validate_and_setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected