mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Using precise code for pyright: ignore and re-enabling various pyright tests (#12576)
This commit is contained in:
@@ -351,7 +351,7 @@ class Blob(Object):
|
||||
# This is not a real subclassing. Just ensuring type-checkers sees this type as compatible with _CDataBase
|
||||
# pyright has no error code for subclassing final
|
||||
@final
|
||||
class Branch(Reference): # type: ignore[misc] # pyright: ignore
|
||||
class Branch(Reference): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
||||
branch_name: str
|
||||
raw_branch_name: bytes
|
||||
remote_name: str
|
||||
|
||||
@@ -18,7 +18,7 @@ def strarray_to_strings(arr: _GitStrArray) -> list[str]: ...
|
||||
# Actual type: _cffi_backend.__CDataOwn <cdata 'struct git_strarray *'>
|
||||
# This is not a real subclassing. Just ensuring type-checkers sees this type as compatible with _CDataBase
|
||||
# pyright has no error code for subclassing final
|
||||
class _GitStrArray(_CDataBase): # type: ignore[misc] # pyright: ignore
|
||||
class _GitStrArray(_CDataBase): # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
|
||||
count: int
|
||||
strings: _CDataBase # <cdata 'char * *'>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user