Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for __str__ (0.16 sec)

  1. tests/test_inherited_custom_class.py

    from pydantic import BaseModel
    
    from .utils import needs_pydanticv1, needs_pydanticv2
    
    
    class MyUuid:
        def __init__(self, uuid_string: str):
            self.uuid = uuid_string
    
        def __str__(self):
            return self.uuid
    
        @property  # type: ignore
        def __class__(self):
            return uuid.UUID
    
        @property
        def __dict__(self):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. RELEASE.md

        truncating inputs such as from int64 to int32.
    *   Adds `tf.sparse.map_values` to apply a function to the `.value`s of
        `SparseTensor` arguments.
    *   The Python bitwise operators for `Tensor` (`__and__`, `__or__`, `__xor__`
        and `__invert__` now support non-`bool` arguments and apply the
        corresponding bitwise ops. `bool` arguments continue to be supported and
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
Back to top