1. 14 Jan, 2022 3 commits
  2. 21 Dec, 2021 2 commits
  3. 16 Dec, 2021 4 commits
    • Nsukami Patrick's avatar
      [mypy] Correctly add type:ignore comments · be1a5a9429bc
      Nsukami Patrick authored
      be1a5a9429bc
    • Nsukami Patrick's avatar
      [mypy]: Fix various errors related to the description attribute · b9359ad53cea
      Nsukami Patrick authored
      Updates:
      --------
      - Inside Definition class, annotate description attribute as Union of nullobject, str, None
      
      
      And fix the following errors:
      -----------------------------
      yams/buildobjs.py:226: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		self.description = " ".join(self.__doc__.split())
      
      yams/buildobjs.py:894: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		cls.description = " ".join(cls.__doc__.split())
      b9359ad53cea
    • Nsukami Patrick's avatar
      [mypy] Fix various errors related to subject & object attributes · f0ce6b51539b
      Nsukami Patrick authored
      Updates:
      --------
      - Annotate subject attribute as a Union of nullobject, str, None
      - Annotate object attribute as a Union of nullobject, str, None
      
      
      And fix the following errors:
      -----------------------------
      yams/buildobjs.py:966: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		self.subject = subject
      			       ^
      yams/buildobjs.py:971: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		self.object = object
      
      yams/buildobjs.py:603: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      				relation_definition.subject = name
      							      ^
      yams/buildobjs.py:606: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      				relation_definition.object = name
      f0ce6b51539b
    • Nsukami Patrick's avatar
      [mypy]: Fix various errors · c312ff9d2c1b
      Nsukami Patrick authored
      Updates:
      --------
      - Annotate cardinality attribute as a Union of nullobject, str, None.
      - assert cardinality is an instance of str if not an instance of nullobject
      
      
      To fix the following errors:
      ----------------------------
      yams/buildobjs.py:1071: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		    self.cardinality = "?1"
      				       ^
      yams/buildobjs.py:1073: error: Incompatible types in assignment (expression has type "str", variable has type "nullobject")  [assignment]
      		    self.cardinality = "**"
      				       ^
      yams/buildobjs.py:1075: error: Argument 1 to "len" has incompatible type "nullobject"; expected "Sized"  [arg-type]
      		assert len(cardinality) == 2
      			   ^
      yams/buildobjs.py:1076: error: Value of type "nullobject" is not indexable  [index]
      		assert cardinality[0] in "1?+*"
      		       ^
      yams/buildobjs.py:1077: error: Value of type "nullobject" is not indexable  [index]
      		assert cardinality[1] in "1?+*"
      c312ff9d2c1b
  4. 07 Dec, 2021 1 commit
  5. 10 Dec, 2021 2 commits
  6. 08 Dec, 2021 1 commit
    • Nsukami Patrick's avatar
      [mypy] Fix error: "type" has no attribute "type" · 6b294384c1ee
      Nsukami Patrick authored
      Error:
      yams/constraints.py:461: error: "type" has no attribute "type"
          BoundConstraint.type = lambda x: "BoundaryConstraint"
      
      Fix:
      Add a method named "type" inside the BoundaryConstraint class.
      This method should explicitely return the string "BoundaryConstraint".
      Finally, remove the dynamically added type attribute
      6b294384c1ee
  7. 26 Nov, 2021 10 commits
  8. 16 Nov, 2021 2 commits
  9. 10 Nov, 2021 1 commit
  10. 28 Jul, 2021 6 commits
  11. 21 Apr, 2021 1 commit
  12. 24 Feb, 2021 1 commit
  13. 17 Feb, 2021 3 commits
  14. 25 Sep, 2020 2 commits
  15. 22 Jul, 2020 1 commit