mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-07-20 09:26:59 +08:00
fixes
This commit is contained in:
parent
99363f6b43
commit
4cb15e7c78
3 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class NetRecord:
|
|||
@property
|
||||
def object_type(self) -> str:
|
||||
"""object type"""
|
||||
return "inetnum" if V4_NET.network.supernet_of(self.network) \
|
||||
return "inetnum" if V4_NET.supernet_of(self.network) \
|
||||
else "inet6num"
|
||||
|
||||
@property
|
||||
|
|
|
@ -71,6 +71,7 @@ class SchemaDOM:
|
|||
|
||||
@property
|
||||
def links(self) -> Dict[str, List[str]]:
|
||||
"return schema links"
|
||||
return self._links
|
||||
|
||||
def parse(self, f: FileDOM):
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
import inspect
|
||||
import unittest
|
||||
from pprint import pprint
|
||||
|
||||
from .schema import SchemaDOM
|
||||
from .filedom import FileDOM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue