Repository: numpy/numpy
File: numpy/ma/core.pyi (Python)

Code before:
        axis: SupportsIndex | None = None,
        fill_value: _ScalarLike_co | None = None,
        *,
        out: _ArrayType,
        keepdims: bool | _NoValueType = ...,
    ) -> _ArrayType: ...
    @overload
    def argmax(  # type: ignore[override]
        self,
        axis: SupportsIndex | None,
        fill_value: _ScalarLike_co | None,
        out: _ArrayType,
        *,
        keepdims: bool | _NoValueType = ...,
    ) -> _ArrayType: ...

    #
    def sort(
        self,
        axis: SupportsIndex | None = None,
        kind: _SortKind | None = None,
        order: str | Sequence[str] | None = None,
        endwith: bool | None = None,
        fill_value: _ScalarLike_co | None = None,
        *,
        stable: bool | None = None,
    ) -> None: ...
    @overload
    def min(  # type: ignore[override]
        self: _MaskedArray[_SCT],
        axis: None = None,
        out: None = None,
        fill_value: _ScalarLike_co | None = None,
        keepdims: Literal[False] | _NoValueType = ...,
    ) -> _SCT: ...
    @overload
    def min(  # type: ignore[override]
        self,
        axis: _ShapeLike | None = None,
        out: None = None,
        fill_value: _ScalarLike_co | None = None,
        keepdims: bool | _NoValueType = ...
    ) -> Any: ...
    @overload
    def min(  # type: ignore[override]
        self,
        axis: _ShapeLike | None,
        out: _ArrayType,
        fill_value: _ScalarLike_co | None = None,
        keepdims: bool | _NoValueType = ...,
    ) -> _ArrayType: ...

Review comment (suggestion):
Even though the docstring says `stable : bool, optional`, the runtime signature defaults to `False` here 🤷🏻:

https://github.com/numpy/numpy/blob/69f4df3b67002f537d816468d8b5c29f06d5f8e3/numpy/ma/core.py#L5811-L5812

And because of 
https://github.com/numpy/numpy/blob/69f4df3b67002f537d816468d8b5c29f06d5f8e3/numpy/ma/core.py#L5885-L5888

It'd be safest to do something like

```suggestion
        stable: Literal[False] | None = False,
```

Code after:
    def argmax(  # type: ignore[override]
        self,
        axis: SupportsIndex | None = None,
        fill_value: _ScalarLike_co | None = None,
        *,
        out: _ArrayType,
        keepdims: bool | _NoValueType = ...,
    ) -> _ArrayType: ...
    @overload
    def argmax(  # type: ignore[override]
        self,
        axis: SupportsIndex | None,
        fill_value: _ScalarLike_co | None,
        out: _ArrayType,
        *,
        keepdims: bool | _NoValueType = ...,
    ) -> _ArrayType: ...

    #
    def sort(
        self,
        axis: SupportsIndex = -1,
        kind: _SortKind | None = None,
        order: str | Sequence[str] | None = None,
        endwith: bool | None = True,
        fill_value: _ScalarLike_co | None = None,
        *,
        stable: Literal[False] | None = False,
    ) -> None: ...

    # 
    @overload
    def min(  # type: ignore[override]
        self: _MaskedArray[_SCT],
        axis: None = None,
        out: None = None,
        fill_value: _ScalarLike_co | None = None,
        keepdims: Literal[False] | _NoValueType = ...,
    ) -> _SCT: ...
    @overload
    def min(  # type: ignore[override]
        self,
        axis: _ShapeLike | None = None,
        out: None = None,
        fill_value: _ScalarLike_co | None = None,
        keepdims: bool | _NoValueType = ...
    ) -> Any: ...
    @overload
    def min(  # type: ignore[override]
        self,
        axis: _ShapeLike | None,