Repository navigation
Conversation
3 of 7 tasks
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
srittau
marked this pull request as ready for review
November 13, 2026 17:04
Collaborator
Author
|
Primer reports just spam. |
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: paroxython (https://github.com/laowantong/paroxython)
- paroxython/parse_program.py:240: error: Incompatible types in assignment (expression has type "Callable[[str, int | None, int | None, bool, bool | None, bool, float | None], Scanner[str]]", target has type "Pattern[Any]") [assignment]
+ paroxython/parse_program.py:240: error: Incompatible types in assignment (expression has type "Callable[[str, int | None, int | None, bool, bool | None, bool, float | int | None], Scanner[str]]", target has type "Pattern[Any]") [assignment]
apprise (https://github.com/caronc/apprise)
- apprise/plugins/amqp/v091.py:132: error: Argument 1 to "ConnectionParameters" has incompatible type "**dict[str, object]"; expected "float" [arg-type]
- apprise/plugins/amqp/v091.py:132: error: Argument 1 to "ConnectionParameters" has incompatible type "**dict[str, object]"; expected "float | None" [arg-type]
+ apprise/plugins/amqp/v091.py:132: error: Argument 1 to "ConnectionParameters" has incompatible type "**dict[str, object]"; expected "float | int" [arg-type]
+ apprise/plugins/amqp/v091.py:132: error: Argument 1 to "ConnectionParameters" has incompatible type "**dict[str, object]"; expected "float | int | None" [arg-type]
rclip (https://github.com/yurijmikhalevich/rclip)
- rclip/utils/download_progress.py:21: note: def __init__(self, iterable: Iterable[Any], desc: str | None = ..., total: float | None = ..., leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., maxinterval: float = ..., miniters: float | None = ..., ascii: bool | str | None = ..., disable: bool | None = ..., unit: str = ..., unit_scale: bool | float = ..., dynamic_ncols: bool = ..., smoothing: float = ..., bar_format: str | None = ..., initial: float = ..., position: int | None = ..., postfix: Mapping[str, object] | str | None = ..., unit_divisor: float = ..., write_bytes: bool = ..., lock_args: tuple[bool | None, float | None] | tuple[bool | None] | None = ..., nrows: int | None = ..., colour: str | None = ..., delay: float | None = ..., gui: bool = ..., **kwargs: Any) -> None
+ rclip/utils/download_progress.py:21: note: def __init__(self, iterable: Iterable[Any], desc: str | None = ..., total: float | int | None = ..., leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float | int = ..., maxinterval: float | int = ..., miniters: float | int | None = ..., ascii: bool | str | None = ..., disable: bool | None = ..., unit: str = ..., unit_scale: bool | float | int = ..., dynamic_ncols: bool = ..., smoothing: float | int = ..., bar_format: str | None = ..., initial: float | int = ..., position: int | None = ..., postfix: Mapping[str, object] | str | None = ..., unit_divisor: float | int = ..., write_bytes: bool = ..., lock_args: tuple[bool | None, float | int | None] | tuple[bool | None] | None = ..., nrows: int | None = ..., colour: str | None = ..., delay: float | int | None = ..., gui: bool = ..., **kwargs: Any) -> None
- rclip/utils/download_progress.py:21: note: def __init__(self, iterable: None = ..., desc: str | None = ..., total: float | None = ..., leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float = ..., maxinterval: float = ..., miniters: float | None = ..., ascii: bool | str | None = ..., disable: bool | None = ..., unit: str = ..., unit_scale: bool | float = ..., dynamic_ncols: bool = ..., smoothing: float = ..., bar_format: str | None = ..., initial: float = ..., position: int | None = ..., postfix: Mapping[str, object] | str | None = ..., unit_divisor: float = ..., write_bytes: bool | None = ..., lock_args: tuple[bool | None, float | None] | tuple[bool | None] | None = ..., nrows: int | None = ..., colour: str | None = ..., delay: float | None = ..., gui: bool = ..., **kwargs: Any) -> None
+ rclip/utils/download_progress.py:21: note: def __init__(self, iterable: None = ..., desc: str | None = ..., total: float | int | None = ..., leave: bool | None = ..., file: SupportsWrite[str] | None = ..., ncols: int | None = ..., mininterval: float | int = ..., maxinterval: float | int = ..., miniters: float | int | None = ..., ascii: bool | str | None = ..., disable: bool | None = ..., unit: str = ..., unit_scale: bool | float | int = ..., dynamic_ncols: bool = ..., smoothing: float | int = ..., bar_format: str | None = ..., initial: float | int = ..., position: int | None = ..., postfix: Mapping[str, object] | str | None = ..., unit_divisor: float | int = ..., write_bytes: bool | None = ..., lock_args: tuple[bool | None, float | int | None] | tuple[bool | None] | None = ..., nrows: int | None = ..., colour: str | None = ..., delay: float | int | None = ..., gui: bool = ..., **kwargs: Any) -> None
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/profiling/_gevent.py:218: note: def spawn_later(cls, seconds: float, run: def (*Any, **Any) -> Any, *args: Any, **kwargs: Any) -> Greenlet
+ ddtrace/profiling/_gevent.py:218: note: def spawn_later(cls, seconds: float | int, run: def (*Any, **Any) -> Any, *args: Any, **kwargs: Any) -> Greenlet
- ddtrace/profiling/_gevent.py:218: note: def spawn_later(cls, seconds: float) -> Greenlet[[], None]
+ ddtrace/profiling/_gevent.py:218: note: def spawn_later(cls, seconds: float | int) -> Greenlet[[], None]
- ddtrace/profiling/_gevent.py:302: error: Incompatible types in assignment (expression has type "def joinall(greenlets: Sequence[Greenlet[Any, Any]], *args: Any, **kwargs: Any) -> Sequence[Greenlet[Any, Any]]", variable has type "Callable[[Sequence[_G], float | None, bool, int | None], list[_G]]") [assignment]
+ ddtrace/profiling/_gevent.py:302: error: Incompatible types in assignment (expression has type "def joinall(greenlets: Sequence[Greenlet[Any, Any]], *args: Any, **kwargs: Any) -> Sequence[Greenlet[Any, Any]]", variable has type "Callable[[Sequence[_G], float | int | None, bool, int | None], list[_G]]") [assignment]
- ddtrace/profiling/_gevent.py:326: error: Incompatible types in assignment (expression has type "Callable[..., Sequence[Greenlet[Any, Any]]]", variable has type "Callable[[Sequence[_G], float | None, bool, int | None], list[_G]]") [assignment]
+ ddtrace/profiling/_gevent.py:326: error: Incompatible types in assignment (expression has type "Callable[..., Sequence[Greenlet[Any, Any]]]", variable has type "Callable[[Sequence[_G], float | int | None, bool, int | None], list[_G]]") [assignment]
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep
floatin the following cases:int.Callabletypes.builtins.float– the generator needs an update.This was mainly generated using a codemod, and manually verified. Manual changes:
float/intunions to a consistent order.int/`float.FloatInttofloat:convertdate.utils(same)Part of #16059