Skip to content

Commit 8616332

Browse files
committed
Type annotations
1 parent 6295280 commit 8616332

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

reportportal_client/_local/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"""Report Portal client context storing and retrieving module."""
1414
from threading import local
1515

16-
1716
__INSTANCES = local()
1817

1918

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2022 https://reportportal.io .
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# https://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License
13+
14+
from typing import Optional
15+
16+
from reportportal_client.client import RPClient
17+
18+
19+
def current() -> Optional[RPClient]: ...
20+
21+
22+
def set_current(client: Optional[RPClient]) -> None: ...

0 commit comments

Comments
 (0)