Skip to content

Commit

Permalink
Merge branch 'master' of github.com:briancappello/py-meta-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
briancappello committed Jan 25, 2020
2 parents 8ebf9b1 + 8de20be commit 768ca13
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# CHANGELOG

## 0.7.6 (unreleased)
## 0.7.7 (unreleased)

- fix bug with `_missing` equality check

## 0.7.6 (2019/04/11)

- propagate `__classcell__` to `type.__new__` in `OptionalMetaclass.__new__`

## 0.7.5 (2019/02/25)

- fix project name on PyPI having spaces
Expand Down
3 changes: 2 additions & 1 deletion py_meta_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ class Optional(metaclass=SomeMetaclass):
__optional_class = None

def __new__(mcs, name, bases, clsdict):
mcs.__optional_class = super().__new__(mcs, name, bases, clsdict)
if mcs.__optional_class is None or '__classcell__' in clsdict:
mcs.__optional_class = super().__new__(mcs, name, bases, clsdict)
return mcs.__optional_class

def __getattr__(self, item):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ testpaths = tests
addopts = -s

[bumpversion]
current_version = 0.7.5
current_version = 0.7.6
parse =
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) # major, minor and patch
(?:\-(?P<pre>(?:dev|alpha|beta|rc))\.(?P<prenum>\d+))? # pre-release
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='Py-Meta-Utils',
version='0.7.5',
version='0.7.6',
description='Metaclass utilities for Python',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 768ca13

Please sign in to comment.