Fix typos

---------

Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
This commit is contained in:
omahs 2025-05-09 20:57:14 +02:00 committed by GitHub
parent b4a1ebdfe3
commit 882a1a702e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 191 additions and 191 deletions

View file

@ -1389,7 +1389,7 @@ X: bool = True
```py
def f():
# TODO: we should emit a syntax errror here (tracked by https://github.com/astral-sh/ruff/issues/11934)
# TODO: we should emit a syntax error here (tracked by https://github.com/astral-sh/ruff/issues/17412)
from exporter import *
# error: [unresolved-reference]

View file

@ -163,7 +163,7 @@ other
## Based on type inference
For the the rest of this test suite, we will mostly use `True` and `False` literals to indicate
For the rest of this test suite, we will mostly use `True` and `False` literals to indicate
statically known conditions, but here, we show that the results are truly based on type inference,
not some special handling of specific conditions in semantic index building. We use two modules to
demonstrate this, since semantic index building is inherently single-module:

View file

@ -1824,7 +1824,7 @@ where
// Save the state immediately *after* visiting the `try` block
// but *before* we prepare for visiting the `except` block(s).
//
// We will revert to this state prior to visiting the the `else` block,
// We will revert to this state prior to visiting the `else` block,
// as there necessarily must have been 0 `except` blocks executed
// if we hit the `else` block.
let post_try_block_state = self.flow_snapshot();

View file

@ -9,7 +9,7 @@ pub(crate) struct CallArguments<'a>(Vec<Argument<'a>>);
impl<'a> CallArguments<'a> {
/// Prepend an optional extra synthetic argument (for a `self` or `cls` parameter) to the front
/// of this argument list. (If `bound_self` is none, we return the the argument list
/// of this argument list. (If `bound_self` is none, we return the argument list
/// unmodified.)
pub(crate) fn with_self(&self, bound_self: Option<Type<'_>>) -> Cow<Self> {
if bound_self.is_some() {
@ -87,7 +87,7 @@ impl<'a, 'db> CallArgumentTypes<'a, 'db> {
}
/// Prepend an optional extra synthetic argument (for a `self` or `cls` parameter) to the front
/// of this argument list. (If `bound_self` is none, we return the the argument list
/// of this argument list. (If `bound_self` is none, we return the argument list
/// unmodified.)
pub(crate) fn with_self(&self, bound_self: Option<Type<'db>>) -> Cow<Self> {
if let Some(bound_self) = bound_self {

View file

@ -492,7 +492,7 @@ impl std::ops::DerefMut for DiagnosticGuard<'_, '_> {
///
/// # Panics
///
/// This panics when the the underlying diagnostic lacks a primary
/// This panics when the underlying diagnostic lacks a primary
/// annotation, or if it has one and its file doesn't match the file
/// being type checked.
impl Drop for DiagnosticGuard<'_, '_> {

View file

@ -8277,7 +8277,7 @@ impl<'db> TypeInferenceBuilder<'db> {
let callable_type = Type::Callable(callable_type);
// `Signature` / `Parameters` are not a `Type` variant, so we're storing
// the outer callable type on the these expressions instead.
// the outer callable type on these expressions instead.
self.store_expression_type(arguments_slice, callable_type);
if let Some(first_argument) = first_argument {
self.store_expression_type(first_argument, callable_type);