Typing: Compatibility#

Since typing still significantly changes across different Python versions, all the special cases are handled here.

class tad_libcint.typing.compat.Callable#

Bases: object

class tad_libcint.typing.compat.Sequence#

Bases: Reversible, Collection

All the operations on a read-only sequence.

Concrete subclasses must override __new__ or __init__, __getitem__, and __len__.

count(value) integer -- return number of occurrences of value#
index(value[, start[, stop]]) integer -- return first index of value.#

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.