Changeset 859e2b1 in flexoentity


Ignore:
Timestamp:
10/22/25 10:47:59 (3 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
master
Children:
2f650ac
Parents:
3d65ce5
Message:

rename from_str to from_string

File:
1 edited

Legend:

Unmodified
Added
Removed
  • flexoentity/id_factory.py

    r3d65ce5 r859e2b1  
    4949
    5050    @classmethod
     51    def from_string(cls, id_str: str):
     52        # reconstruct without a known signature
     53        return cls(id_str, signature="")
     54
     55    @classmethod
    5156    def from_oid_and_version(cls, oid, version: int):
    5257        if not (1 <= version <= cls.MAX_VERSION):
     
    214219        return f"<FlexOID {self.flexo_id} sig={self.signature[:8]}…>"
    215220
    216     @classmethod
    217     def from_str(cls, id_str: str):
    218         # reconstruct without a known signature
    219         return cls(id_str, signature="")
Note: See TracChangeset for help on using the changeset viewer.