Skip to content

Commit 1a73bdd

Browse files
committed
Add placeholder for adding type hinting using the new syntax in Python.
1 parent 3b8436b commit 1a73bdd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

lib_common/src/d1_common/typing.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This work was created by participants in the DataONE project, and is
2+
# jointly copyrighted by participating institutions in DataONE. For
3+
# more information on DataONE, see our web site at http://dataone.org.
4+
#
5+
# Copyright 2009-2019 DataONE
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
"""Support for type annotations in d1_common.
19+
20+
Types for DataONE objects are provided along with all the contents of Python's standard
21+
``typing`` module.
22+
"""
23+
24+
# noinspection PyUnresolvedReferences
25+
from typing import *
26+
27+
D1Client = NewType("D1Client", Any)
28+
29+
AsyncD1Client = NewType("AsyncD1Client", Any)
30+
Checksum = NewType("Checksum", Any)

0 commit comments

Comments
 (0)