FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pointers.py/src/pointers/magic.py at master · ZeroIntensity/pointers.py · GitHub
ZeroIntensity
pointers.py
Repository navigation
Code
Issues
2
(2)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pointers.py
/
src
/
pointers
/
magic.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (13 loc) · 423 Bytes
Breadcrumbs
pointers.py
/
src
/
pointers
/
magic.py
Copy path
File metadata and controls
22 lines (13 loc) · 423 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from
typing
import
TYPE_CHECKING
,
TypeVar
if
TYPE_CHECKING
:
from
.
base_pointers
import
BasePointer
from
.
object_pointer
import
Pointer
from
.
object_pointer
import
to_ptr
__all__
=
(
"_"
,)
T
=
TypeVar
(
"T"
)
class
_PointerOperatorMagic
:
def
__and__
(
self
,
obj
:
T
)
->
"Pointer[T]"
:
return
to_ptr
(
obj
)
def
__mul__
(
self
,
ptr
:
"BasePointer[T]"
)
->
T
:
return
~
ptr
_
=
_PointerOperatorMagic
()
Back
|
FazBrowse Home
|
New Git URL