Skip to content

Commit a59e704

Browse files
committed
Merge fix/typing-for-callable-type into master
2 parents 72f0525 + 8b72e57 commit a59e704

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2026-01-01
9+
### Fixed
10+
11+
- [x] fix: typing for `Callable` type
12+
813
## [1.1.0] - 2023-01-20
914
### Fixed
1015

@@ -20,5 +25,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2025

2126
- Initial implementation
2227

23-
[1.1.0]: https://github.com/md-py/md.python/releases/tag/1.1.0
28+
[1.1.1]: https://github.com/md-py/md.python/releases/compare/1.1.0...1.1.1
29+
[1.1.0]: https://github.com/md-py/md.python/releases/compare/1.0.0...1.1.0
2430
[1.0.0]: https://github.com/md-py/md.python/releases/tag/1.0.0

lib/md/python/_python.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import builtins
2-
import collections
32
import importlib
43
import typing
54
import types
65

76

87
# Metadata
98
__author__ = 'https://md.land/md'
10-
__version__ = '1.0.0'
9+
__version__ = '1.1.1'
1110
__all__ = (
1211
# Metadata
1312
'__author__',
@@ -102,7 +101,7 @@ def dereference(reference_: str) -> object:
102101

103102

104103
# noinspection PyUnresolvedReferences
105-
def reference(definition: typing.Union[str, collections.Callable], explicit: bool = True) -> str:
104+
def reference(definition: typing.Union[str, typing.Callable], explicit: bool = True) -> str:
106105
""" References class object to a string pointer """
107106
if isinstance(definition, str):
108107
assert all([part.isidentifier() for part in definition.split('.')])

setup.py

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

66
setuptools.setup(
77
name='md.python',
8-
version='1.1.0',
8+
version='1.1.1',
99
description='component that provides python definition API',
1010
long_description=long_description,
1111
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)