Skip to content

Commit b083173

Browse files
committed
Let type annotation syntax to work with Python 3.9
And fix the development Python to 3.9, so that local testing catches problems like this sooner.
1 parent f83edfa commit b083173

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

dev-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ name: scyjava-dev
1818
channels:
1919
- conda-forge
2020
dependencies:
21-
- python >= 3.9
21+
- python = 3.9
2222
# Project dependencies
2323
- jpype1 >= 1.3.0
2424
- jgo

src/scyjava/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import enum as _enum
24
import logging as _logging
35
import os as _os

src/scyjava/inspect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
High-level convenience functions for inspecting Java objects.
33
"""
44

5+
from __future__ import annotations
6+
57
from sys import stdout as _stdout
68

79
from scyjava import _introspect

0 commit comments

Comments
 (0)