mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Make more miscellaneous fields read-only, annotate _json.make_encoder (#7439)
This commit is contained in:
@@ -387,8 +387,10 @@ class DirEntry(Generic[AnyStr]):
|
||||
# This is what the scandir iterator yields
|
||||
# The constructor is hidden
|
||||
|
||||
name: AnyStr
|
||||
path: AnyStr
|
||||
@property
|
||||
def name(self) -> AnyStr: ...
|
||||
@property
|
||||
def path(self) -> AnyStr: ...
|
||||
def inode(self) -> int: ...
|
||||
def is_dir(self, *, follow_symlinks: bool = ...) -> bool: ...
|
||||
def is_file(self, *, follow_symlinks: bool = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user