MCPcopy Create free account

hub / github.com/samuelcolvin/dirty-equals / functions

Functions247 in github.com/samuelcolvin/dirty-equals

↓ 11 callersMethod__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to `app
dirty_equals/_numeric.py:170
↓ 6 callersMethod__init__
Args: version: The version of the IP to check, if omitted, versions 4 and 6 are both accepted. netmask: The netmask o
dirty_equals/_other.py:338
↓ 5 callersFunctionplain_repr
(v: str)
dirty_equals/_utils.py:18
↓ 5 callersMethodsettings
Allows you to customise the behaviour of `IsDict`, technically a new `IsDict` is required to allow chaining. Args: stric
dirty_equals/_dict.py:51
↓ 3 callersMethod__init__
(self, a: 'InstanceOrType', b: 'InstanceOrType', *extra: 'InstanceOrType')
dirty_equals/_base.py:165
↓ 3 callersMethod__init__
Args: delta: The allowable different when comparing to the value to now, if omitted 2 seconds is used, ints and f
dirty_equals/_datetime.py:129
↓ 3 callersMethod__init__
Args: expected_name: The name to check against. allow_instances: whether instances of classes with the given name sho
dirty_equals/_inspection.py:68
↓ 3 callersFunction_repr_ne
(v: InstanceOrType)
dirty_equals/_base.py:200
↓ 3 callersMethodbounds_checks
(self, other: N)
dirty_equals/_numeric.py:122
↓ 3 callersFunctiondispatch
(value)
tests/test_base.py:200
↓ 3 callersMethodprepare
(self, other: Any)
dirty_equals/_numeric.py:106
↓ 2 callersMethod__init__
(self, length: int)
dirty_equals/_sequence.py:27
↓ 2 callersMethod_filter_dict
(self, d: dict[Any, Any])
dirty_equals/_dict.py:123
↓ 2 callersMethod_get_now
(self)
dirty_equals/_datetime.py:184
↓ 2 callersFunction_length_correct
(length: 'LengthType', other: 'Sized')
dirty_equals/_sequence.py:272
↓ 2 callersFunction_length_repr
(length: 'LengthType')
dirty_equals/_sequence.py:260
↓ 2 callersMethodequals
Abstract method, must be implemented by subclasses. `TypeError` and `ValueError` are caught in `__eq__` and indicate `other` is not
dirty_equals/_base.py:69
↓ 2 callersMethodequals
(self, other: Any)
dirty_equals/_numeric.py:114
↓ 2 callersFunctionget_dict_arg
Used to enforce init logic similar to `dict(...)`.
dirty_equals/_utils.py:26
↓ 1 callersFunction_build_type_adapter
(ta: type[TypeAdapter[T]], schema: T)
dirty_equals/_other.py:159
↓ 1 callersMethod_fields_check
Checks exactness of fields using [`IsDict`][dirty_equals.IsDict] with given settings. Remark that if this method is called, then `ot
dirty_equals/_other.py:485
↓ 1 callersMethod_ignore_value
(self, v: Any)
dirty_equals/_dict.py:126
↓ 1 callersMethod_post_init
(self)
dirty_equals/_dict.py:48
↓ 1 callersMethod_post_init
(self)
dirty_equals/_other.py:456
↓ 1 callersMethod_pprint_format
(self, pprinter: PrettyPrinter, stream: io.StringIO, *args: Any, **kwargs: Any)
dirty_equals/_base.py:140
↓ 1 callersMethod_prepare_regex
(self, regex: Union[T, Pattern[T]], regex_flags: int)
dirty_equals/_strings.py:104
↓ 1 callersMethod_repr_ne
(self)
dirty_equals/_base.py:127
↓ 1 callersMethod_repr_ne
(self)
dirty_equals/_base.py:172
↓ 1 callersFunctionadd_version
(markdown: str, page: Page)
docs/plugins.py:45
↓ 1 callersMethodapprox_equals
(self, other: Any, delta: Any)
dirty_equals/_numeric.py:145
↓ 1 callersMethodmake_string_check
(other: str)
dirty_equals/_boolean.py:72
↓ 1 callersFunctionremove_code_fence_attributes
There's no way to add attributes to code fences that works with both pycharm and mkdocs, hence we use `py key="value"` to provide attributes
docs/plugins.py:62
↓ 1 callersFunctionremove_files
(files: Files)
docs/plugins.py:25
↓ 1 callersMethodsettings
Allows to customise the behaviour of `IsDataclass`, technically a new `IsDataclass` to allow chaining.
dirty_equals/_other.py:468
Function_
(value: DirtyEquals)
tests/test_base.py:206
Method__and__
(self, other: Any)
dirty_equals/_base.py:35
Method__and__
(self, other: Any)
dirty_equals/_base.py:121
Method__class_getitem__
(cls, expected_type: JsonType)
dirty_equals/_other.py:114
Method__class_getitem__
(cls, expected_type: ExpectedType)
dirty_equals/_inspection.py:50
Method__class_getitem__
(cls, expected_name: str)
dirty_equals/_inspection.py:99
Method__class_getitem__
(cls, expected_repr: str)
dirty_equals/_inspection.py:145
Method__eq__
(self, other: Any)
dirty_equals/_base.py:16
Method__eq__
(self, other: Any)
dirty_equals/_base.py:101
Method__hash__
(self)
dirty_equals/_base.py:41
Method__init__
(self, a=1, b=2)
tests/test_inspection.py:7
Method__init__
(self, expected: dict[Any, Any])
dirty_equals/_dict.py:21
Method__init__
Args: *repr_args: unnamed args to be used in `__repr__` **repr_kwargs: named args to be used in `__repr__`
dirty_equals/_base.py:58
Method__init__
(self, a: InstanceOrType, b: InstanceOrType, *extra: InstanceOrType)
dirty_equals/_base.py:177
Method__init__
(self, subject: InstanceOrType)
dirty_equals/_base.py:189
Method__init__
Args: expected_value: Expected value for equals to return true. *more_expected_values: More expected values for equal
dirty_equals/_base.py:236
Method__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to `app
dirty_equals/_datetime.py:18
Method__init__
Args: approx: A value to approximately compare to. delta: The allowable different when comparing to the value to now,
dirty_equals/_datetime.py:206
Method__init__
Args: iso_string: whether to allow iso formatted strings in comparison format_string: if provided, `format_string` is
dirty_equals/_datetime.py:281
Method__init__
Args: version: The version of the UUID to check, if omitted, all versions are accepted. ```py title="IsUUID" imp
dirty_equals/_other.py:25
Method__init__
(self, expected_value: JsonType = AnyJson)
dirty_equals/_other.py:71
Method__init__
Args: func: callable that takes a value and returns a bool. ```py title="FunctionCheck" from dirty_equals import
dirty_equals/_other.py:133
Method__init__
Args: any_url: any scheme allowed, host required any_http_url: scheme http or https, host required http_u
dirty_equals/_other.py:182
Method__init__
Args: hash_type: The hash type to check. Must be specified. ```py title="IsHash" from dirty_equals import IsHash
dirty_equals/_other.py:289
Method__init__
Args: fields: key-value pairs of field-value to check for.
dirty_equals/_other.py:446
Method__init__
Args: enum_cls: Enum class to check against.
dirty_equals/_other.py:577
Method__init__
Args: min_length: minimum length of the string/bytes max_length: maximum length of the string/bytes case:
dirty_equals/_strings.py:24
Method__init__
Args: contained_value: value that must be contained in the compared object. *more_contained_values: more values that
dirty_equals/_sequence.py:68
Method__init__
(self, *items: Any, check_order: bool = True, length: 'LengthType' = None)
dirty_equals/_sequence.py:100
Method__init__
Args: expected_type: The type to check against. only_direct_instance: whether instances of subclasses of `expected_ty
dirty_equals/_inspection.py:15
Method__init__
Args: expected_repr: The expected repr value. Example: ```py title="HasRepr" from dirty_equals import Ha
dirty_equals/_inspection.py:122
Method__init__
(self, expected: dict[Any, Any])
dirty_equals/_inspection.py:160
Method__init__
Args: exactly: A value to exactly compare to - useful when you want to make sure a value is an `int` or `float`,
dirty_equals/_numeric.py:41
Method__init__
(self)
dirty_equals/_numeric.py:206
Method__init__
(self)
dirty_equals/_numeric.py:229
Method__init__
(self)
dirty_equals/_numeric.py:253
Method__init__
(self)
dirty_equals/_numeric.py:278
Method__init__
(self)
dirty_equals/_numeric.py:326
Method__init__
(self)
dirty_equals/_numeric.py:348
Method__init__
(self)
dirty_equals/_numeric.py:392
Method__init__
(self)
dirty_equals/_numeric.py:414
Method__init__
(self)
dirty_equals/_numeric.py:455
Method__init__
(self)
dirty_equals/_numeric.py:479
Method__init__
Args: allow_strings: if `True`, allow comparisons to `False` like strings, case-insensitive, allows `''`, `'false
dirty_equals/_boolean.py:38
Method__init__
(self, v: str)
dirty_equals/_utils.py:11
Method__invert__
(self)
dirty_equals/_base.py:38
Method__invert__
(self)
dirty_equals/_base.py:124
Method__ne__
(self, other: Any)
dirty_equals/_base.py:110
Method__or__
(self, other: Any)
dirty_equals/_base.py:32
Method__or__
(self, other: Any)
dirty_equals/_base.py:118
Method__repr__
(self)
tests/test_inspection.py:28
Method__repr__
(self)
dirty_equals/_base.py:44
Method__repr__
(self)
dirty_equals/_base.py:132
Method__repr__
(self)
dirty_equals/_utils.py:14
Method_post_init
(self)
dirty_equals/_dict.py:178
Method_post_init
(self)
dirty_equals/_dict.py:211
Method_post_init
(self)
dirty_equals/_dict.py:233
Method_post_init
(self)
dirty_equals/_other.py:520
Method_post_init
(self)
dirty_equals/_other.py:553
Method_repr_ne
(self)
dirty_equals/_dict.py:139
Method_repr_ne
(self)
dirty_equals/_base.py:184
Method_repr_ne
(self)
dirty_equals/_base.py:196
Methodapprox_equals
(self, other: datetime, delta: timedelta)
dirty_equals/_datetime.py:108
Functioncustom_ignore
(v: int)
tests/test_dict.py:126
Functiondirty_repr
(value)
tests/test_inspection.py:15
Methodequals
(self, other: dict[Any, Any])
dirty_equals/_dict.py:103
next →1–100 of 247, ranked by callers