Skip to content

Commit 914bbff

Browse files
committed
tidy up
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
1 parent 68b370e commit 914bbff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/entities.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,8 @@ from netboxlabs.diode.sdk.ingester import (
132132
DeviceType,
133133
Entity,
134134
Interface,
135-
IPAddress,
136135
Manufacturer,
137136
Platform,
138-
Prefix,
139137
Role,
140138
Site,
141139
)

netboxlabs/diode/sdk/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import logging
66
import os
77
import platform
8-
import urllib
98
import uuid
109
from collections.abc import Iterable
10+
from urllib.parse import urlparse
1111

1212
import certifi
1313
import grpc
@@ -43,7 +43,7 @@ def _get_api_key(api_key: str | None = None) -> str:
4343

4444
def parse_target(target: str) -> tuple[str, str, bool]:
4545
"""Parse the target into authority, path and tls_verify."""
46-
parsed_target = urllib.parse.urlparse(target)
46+
parsed_target = urlparse(target)
4747

4848
if parsed_target.scheme not in ["grpc", "grpcs"]:
4949
raise ValueError("target should start with grpc:// or grpcs://")

0 commit comments

Comments
 (0)