Skip to content

Commit

Permalink
More correctly idenfity the presence of group
Browse files Browse the repository at this point in the history
  • Loading branch information
SethMMorton committed Dec 21, 2024
1 parent 2b56cd5 commit 4c009c3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions path/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ from typing import (
overload,
)

try:
import grp as _grp
except ImportError:
_has_grp = False
else:
_has_grp = True
del _grp

from typing_extensions import Never
from _typeshed import (
ExcInfo,
Expand Down Expand Up @@ -334,10 +326,9 @@ class Path(str):
def get_owner(self) -> str: ...
@property
def owner(self) -> str: ...
if _has_grp:
def group(self, *, follow_symlinks: bool = ...) -> str: ...

if sys.platform != 'win32':
def group(self, *, follow_symlinks: bool = ...) -> str: ...
def statvfs(self) -> os.statvfs_result: ...
def pathconf(self, name: str | int) -> int: ...

Expand Down

0 comments on commit 4c009c3

Please sign in to comment.