Fix couple inconsistencies in protocols vs TypeType by ilevkivskyi · Pull Request #19267 · python/mypy

@ilevkivskyi

@ilevkivskyi

@github-actions

This comment has been minimized.

@ilevkivskyi

@ilevkivskyi

The fix(es) here are quite straightforward, so I am going to merge this without a review, unless there are objections.

@github-actions

Diff from mypy_primer, showing the effect of this PR on open source code:

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/utilities/services.py:129: note: Following member(s) of "Exception" have conflicts:
+ src/prefect/utilities/services.py:129: note:     Expected:
+ src/prefect/utilities/services.py:129: note:         def __hash__() -> int
+ src/prefect/utilities/services.py:129: note:     Got:
+ src/prefect/utilities/services.py:129: note:         def __hash__(self: object) -> int