Last change
on this file since 62 was 59, checked in by Wouter Pasman, 3 years ago |
#44 manual commit of first public release, because this will cause the dist directory to move
|
File size:
483 bytes
|
Line | |
---|
1 |
|
---|
2 | from abc import ABC, abstractmethod
|
---|
3 | from typing import TypeVar, Generic, List
|
---|
4 | from pyson.JsonValue import JsonValue
|
---|
5 | from uri import URI # type: ignore
|
---|
6 |
|
---|
7 | class Reference (ABC):
|
---|
8 | '''
|
---|
9 | A reference is a URI to a Connectable object.
|
---|
10 | '''
|
---|
11 | @abstractmethod
|
---|
12 | def getURI(self) -> URI:
|
---|
13 | '''
|
---|
14 | @return URI address to which a connection can be made with the real
|
---|
15 | object. HACK for now we return just the str
|
---|
16 | '''
|
---|
17 |
|
---|
18 | # WE CAN NOT DEFINE __hash__ here, it is not inherited... |
---|
Note:
See
TracBrowser
for help on using the repository browser.