(
a: Type,
b: Type,
*,
ignore_type_params: bool = False,
ignore_pos_arg_names: bool = False,
options: Options | None = None,
subtype_context: SubtypeContext | None = None,
)
| 229 | |
| 230 | |
| 231 | def is_equivalent( |
| 232 | a: Type, |
| 233 | b: Type, |
| 234 | *, |
| 235 | ignore_type_params: bool = False, |
| 236 | ignore_pos_arg_names: bool = False, |
| 237 | options: Options | None = None, |
| 238 | subtype_context: SubtypeContext | None = None, |
| 239 | ) -> bool: |
| 240 | return is_subtype( |
| 241 | a, |
| 242 | b, |
| 243 | ignore_type_params=ignore_type_params, |
| 244 | ignore_pos_arg_names=ignore_pos_arg_names, |
| 245 | options=options, |
| 246 | subtype_context=subtype_context, |
| 247 | ) and is_subtype( |
| 248 | b, |
| 249 | a, |
| 250 | ignore_type_params=ignore_type_params, |
| 251 | ignore_pos_arg_names=ignore_pos_arg_names, |
| 252 | options=options, |
| 253 | subtype_context=subtype_context, |
| 254 | ) |
| 255 | |
| 256 | |
| 257 | def is_same_type( |
no test coverage detected
searching dependent graphs…