mirror of https://github.com/astral-sh/ruff
BLEGH
This commit is contained in:
parent
ad8509dc22
commit
b294a94bf2
|
|
@ -458,6 +458,7 @@ class Event(Generic[_DataT]):
|
|||
|
||||
def async_fire_internal(event_data: _DataT):
|
||||
event: Event[_DataT] | None = None
|
||||
reveal_type(Event(event_data))
|
||||
event = Event(event_data)
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -1847,8 +1847,7 @@ impl<'db> Type<'db> {
|
|||
// the union of its constraints. An unbound, unconstrained, fully static typevar has an
|
||||
// implicit upper bound of `object` (which is handled above).
|
||||
(Type::TypeVar(bound_typevar), _)
|
||||
if !bound_typevar.is_inferable(db, inferable)
|
||||
&& bound_typevar.typevar(db).bound_or_constraints(db).is_some() =>
|
||||
if bound_typevar.typevar(db).bound_or_constraints(db).is_some() =>
|
||||
{
|
||||
match bound_typevar.typevar(db).bound_or_constraints(db) {
|
||||
None => unreachable!(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue