You've already forked hotpocket
BTHLABS-50: Safari Web extension
Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl> Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
from .accounts import AccessTokenOriginApp # noqa: F401
|
||||
from .associations import AssociationsSearchMode # noqa: F401
|
||||
from .core import NULL_UUID, App, Env # noqa: F401
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import annotations
|
||||
|
||||
import enum
|
||||
|
||||
|
||||
class AccessTokenOriginApp(enum.Enum):
|
||||
UNKNOWN = 'UNKNOWN'
|
||||
SAFARI_WEB_EXTENSION = 'SAFARI_WEB_EXTENSION'
|
||||
@@ -85,6 +85,10 @@ class URL:
|
||||
def password(self) -> str | None:
|
||||
return self.parsed_url.password
|
||||
|
||||
@property
|
||||
def raw_path(self) -> str:
|
||||
return self.parsed_url.path
|
||||
|
||||
@property
|
||||
def path(self) -> pathlib.PurePosixPath:
|
||||
return pathlib.PurePosixPath(self.parsed_url.path)
|
||||
|
||||
Reference in New Issue
Block a user