Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
0ed753f1
Commit
0ed753f1
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
fix for v2.2.8
parent
eb145412
No related branches found
Branches containing commit
Tags
v2.2.8
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-1
2 additions, 1 deletion
README.md
satella/coding/structures/immutable.py
+1
-2
1 addition, 2 deletions
satella/coding/structures/immutable.py
with
3 additions
and
3 deletions
README.md
+
2
−
1
View file @
0ed753f1
...
@@ -18,6 +18,7 @@ Satella is a zero-requirements Python 3.5+ library for writing
...
@@ -18,6 +18,7 @@ Satella is a zero-requirements Python 3.5+ library for writing
server applications, especially those dealing with mundane but
server applications, especially those dealing with mundane but
useful things. It also runs on PyPy.
useful things. It also runs on PyPy.
See
[
LICENSE
](
LICENSE
)
for text of the license.
See
[
LICENSE
](
LICENSE
)
for text of the license. This library may contain
code taken from elsewhere on the internets, so this is copyright (c) respective authors.
**satella 1.0 remains in [maintenance mode](https://github.com/piotrmaslanka/satella/tree/satella1.0)**
**satella 1.0 remains in [maintenance mode](https://github.com/piotrmaslanka/satella/tree/satella1.0)**
This diff is collapsed.
Click to expand it.
satella/coding/structures/immutable.py
+
1
−
2
View file @
0ed753f1
...
@@ -10,7 +10,7 @@ class ImmutableMetaType(ABCMeta):
...
@@ -10,7 +10,7 @@ class ImmutableMetaType(ABCMeta):
return
p
return
p
class
Immutable
:
class
Immutable
(
metaclass
=
ImmutableMetaType
)
:
"""
"""
A mix-in to make your classes immutable.
A mix-in to make your classes immutable.
...
@@ -20,7 +20,6 @@ class Immutable:
...
@@ -20,7 +20,6 @@ class Immutable:
>>>
def
__init__
(
self
):
>>>
def
__init__
(
self
):
>>>
self
.
attribute
=
'
value
'
>>>
self
.
attribute
=
'
value
'
"""
"""
__metaclass__
=
ImmutableMetaType
__locked_for_writes
=
False
__locked_for_writes
=
False
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment