This commit is contained in:
Douglas Creager 2025-11-12 09:40:27 -05:00
parent ad8509dc22
commit b294a94bf2
2 changed files with 2 additions and 2 deletions

View File

@ -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)
```

View File

@ -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!(),