Skip to content

Commit 90d9f7c

Browse files
committed
Remove type annotations not compatible with older versions of python
1 parent e86c79b commit 90d9f7c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.pylintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ disable=print-statement,
144144
missing-module-docstring,
145145
missing-class-docstring,
146146
missing-function-docstring,
147-
E1136,
148147
C0330,
149148

150149
# Enable the message, report, category or checker with the given id(s). You can

msgraphcore/graph_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GraphSession(Session):
2020
def __init__(
2121
self,
2222
credential: TokenCredential,
23-
scopes: list[str] = ['.default'],
23+
scopes: [str] = ['.default'],
2424
middleware: list = [],
2525
api_version: str = 'v1.0'
2626
):
@@ -99,7 +99,7 @@ def _graph_url(self, url: str) -> str:
9999
"""
100100
return self._base_url + url if (url[0] == '/') else url
101101

102-
def _register(self, middleware: list[BaseMiddleware]) -> None:
102+
def _register(self, middleware: [BaseMiddleware]) -> None:
103103
"""Adds middleware to middleware_pipeline
104104
105105
:param middleware: list of middleware
@@ -119,7 +119,7 @@ def _append_sdk_version(self) -> None:
119119
self.headers.update(
120120
{
121121
'sdkVersion':
122-
'graph-python-' + SDK_VERSION + ', ' + str(self.headers.get('sdkVersion'))
122+
'graph-python-' + SDK_VERSION + ', ' + self.headers.get('sdkVersion')
123123
}
124124
)
125125
else:

msgraphcore/middleware/authorization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class AuthorizationHandler(BaseMiddleware):
9-
def __init__(self, credential: TokenCredential, scopes: list[str]):
9+
def __init__(self, credential: TokenCredential, scopes: [str]):
1010
super().__init__()
1111
self.credential = credential
1212
self.scopes = scopes
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class AuthMiddlewareOptions:
2-
def __init__(self, scopes: list[str]):
2+
def __init__(self, scopes: [str]):
33
self.scopes = scopes

0 commit comments

Comments
 (0)