mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-19 01:22:51 +08:00
Only define Chrome class on py2.7 or >3.2
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
import sys
|
||||
from typing import Any, Optional, Callable, List
|
||||
|
||||
class Error(Exception): ...
|
||||
@@ -56,12 +57,13 @@ class Galeon(UnixBrowser):
|
||||
remote_action_newwin = ... # type: str
|
||||
background = ... # type: bool
|
||||
|
||||
class Chrome(UnixBrowser):
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
if sys.version_info[:2] == (2, 7) or sys.version_info >= (3, 3):
|
||||
class Chrome(UnixBrowser):
|
||||
remote_args = ... # type: List[str]
|
||||
remote_action = ... # type: str
|
||||
remote_action_newwin = ... # type: str
|
||||
remote_action_newtab = ... # type: str
|
||||
background = ... # type: bool
|
||||
|
||||
class Opera(UnixBrowser):
|
||||
raise_opts = ... # type: List[str]
|
||||
|
||||
Reference in New Issue
Block a user