Skip to content

Commit

Permalink
not so smart
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Feb 11, 2025
1 parent 5762d31 commit 426472b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ pub(crate) enum Symbol<'db> {
}

impl<'db> Symbol<'db> {
/// Smart constructor that creates a `Symbol` with boundness [`Boundness::Bound`].
/// Constructor that creates a `Symbol` with boundness [`Boundness::Bound`].
pub(crate) fn bound(ty: impl Into<Type<'db>>) -> Self {
Symbol::Type(ty.into(), Boundness::Bound)
}

/// Smart constructor that creates a [`Symbol`] with a [`crate::types::TodoType`] type
/// Constructor that creates a [`Symbol`] with a [`crate::types::TodoType`] type
/// and boundness [`Boundness::Bound`].
pub(crate) fn todo(message: &'static str) -> Self {
Symbol::Type(todo_type!(message), Boundness::Bound)
Expand Down
4 changes: 2 additions & 2 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ fn symbol_from_bindings<'db>(
pub(crate) struct SymbolAndQualifiers<'db>(Symbol<'db>, TypeQualifiers);

impl SymbolAndQualifiers<'_> {
/// Smart constructor to create a [`SymbolAndQualifiers`] instance with a [`TodoType`] type
/// Constructor that creates a [`SymbolAndQualifiers`] instance with a [`TodoType`] type
/// and no qualifiers.
fn todo(message: &'static str) -> Self {
Self(Symbol::todo(message), TypeQualifiers::empty())
Expand Down Expand Up @@ -2589,7 +2589,7 @@ impl<'db> TypeAndQualifiers<'db> {
Self { inner, qualifiers }
}

/// Smart constructor to create a [`TypeAndQualifiers`] instance with type `Unknown` and no qualifiers.
/// Constructor that creates a [`TypeAndQualifiers`] instance with type `Unknown` and no qualifiers.
pub(crate) fn unknown() -> Self {
Self {
inner: Type::unknown(),
Expand Down

0 comments on commit 426472b

Please sign in to comment.