Skip to content

[red-knot] Consistent suffixes for function names #15569

@sharkdp

Description

@sharkdp

We previously had a scheme where functions that had a _ty suffix would return a Type<'db>. This has been broken in a few places, for example:

  • bindings_ty which returns a Symbol<'db>
  • declaration_ty which returns a TypeAndQualifiers<'db>

We should probably clean this up, i.e. either come up with new suffixes, with entirely new function names, or decide that we don't want to do anything about it.

Metadata

Metadata

Assignees

Labels

tyMulti-file analysis & type inference

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions