Skip to content

Commit

Permalink
Added typed docstrings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bystroushaak committed Oct 10, 2019
1 parent 6d0d7d7 commit 15bb792
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/tinySelf/vm/object_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,16 @@ def _copy_internals_to_clone(self, clone):

@jit.unroll_safe
def _copy_with_primitives(self, clone):
"""
Copy values in this Object into the `clone`. Handle primitive functions
so that they have set correct `scope_parent`.
Args:
clone (Object): Object into which are the slots cloned.
Returns:
Object: `clone` is returned back.
"""
self._copy_internals_to_clone(clone)

if self._slot_values is not None:
Expand Down Expand Up @@ -453,7 +463,7 @@ def version(self):


class _ObjectWithMetaOperations(_ObjectWithMapEncapsulation):
def meta_add_slot(self, slot_name, value, check_duplicates=False):
def meta_add_slot(self, slot_name, value):
"""
check_duplicates: make sure that one value is stored only once
"""
Expand Down

0 comments on commit 15bb792

Please sign in to comment.