-
-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add typing for blame.py and add _ctyping
- Loading branch information
1 parent
720881e
commit 0e55fb3
Showing
3 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# placeholder for pyright |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from _cffi_backend import _CDataBase | ||
|
||
class CData(_CDataBase): ... # type: ignore | ||
|
||
class _CSignatureTime(CData): | ||
time: int | ||
offset: int | ||
|
||
class _CSignature(CData): | ||
name: CData | ||
email: CData | ||
when: _CSignatureTime | ||
|
||
class _COid(CData): | ||
id: CData | ||
|
||
class _CHunk(CData): | ||
boundary: CData | ||
final_commit_id: _COid | ||
final_signature: _CSignature | ||
final_start_line_number: int | ||
lines_in_hunk: int | ||
orig_commit_id: _COid | ||
orig_path: str | ||
orig_signature: _CSignature | ||
orig_start_line_number: int | ||
|
This file contains 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