Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Allow attributes in Configure instances to be set to none value before assigned a value #58

Merged
merged 11 commits into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def run_tests(self):
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules"],
install_requires=[
"cryptojwt==1.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/oidcmsg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Roland Hedberg"
__version__ = "1.5.4"
__version__ = "1.6.0"

import os
from typing import Dict
Expand Down
4 changes: 2 additions & 2 deletions src/oidcmsg/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ def __getattr__(self, item, default=None):
return default

def __setattr__(self, key, value):
if key in self:
if key in self and self.key:
raise KeyError('{} has already been set'.format(key))
super(Base, self).__setitem__(key, value)

def __setitem__(self, key, value):
if key in self:
if key in self and self.key:
raise KeyError('{} has already been set'.format(key))
super(Base, self).__setitem__(key, value)

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{36,37,38},docs,quality
envlist = py{37,38,39,310},docs,quality

[testenv]
passenv = CI TRAVIS TRAVIS_*
Expand Down