1. 03 Jan, 2022 1 commit
  2. 01 Dec, 2021 1 commit
  3. 30 Nov, 2021 1 commit
  4. 25 Nov, 2021 2 commits
  5. 24 Nov, 2021 3 commits
  6. 03 Aug, 2021 1 commit
  7. 13 Jul, 2021 1 commit
    • Nsukami Patrick's avatar
      refactor(mypy): Add more type-hints to stmts module · 2873da817f33
      Nsukami Patrick authored
      Inside stmts module,
      somewhere we read, `self.groupby` attribute being added if not exists and used as a list:
      ```
      if not self.groupby:
          self.groupby = []
      ```
      
      Let's just define:
      - self.groupby self.orderby as instance attribute
      - self.groupby self.orderby as List of Any
      - remove the if not self.grouby check
      
      Do the same with the `self.orderby` attribute.
      
      Inside Select class:
      - update `remove` method signature. And fix the error:
        rql/stmts.py:940: error:
        Argument 1 to "remove_sort_term" of "Select" has incompatible type "BaseNode";
        expected "SortTerm"  [arg-type]
      
      - update undefine_variable method:
        remove useless check of var.variable attribute
      
      Inside undo.NodeOperation class:
      - simplify type hint for `node` parameter inside `NodeOperation.__init__` method
      2873da817f33
  8. 23 Jul, 2021 2 commits
    • Nsukami Patrick's avatar
      black: format without any compromise · 68084ca277a2
      Nsukami Patrick authored
      68084ca277a2
    • Nsukami Patrick's avatar
      mypy: Improve various type hints · 847f5057c319
      Nsukami Patrick authored
      Update rql.base.Node class:
      - define self.parent as a TypeVar
      - define self.children as a List of TypeVar
      - Those 2 TypeVar are bound, i.e: they can be BaseNode or any children of BaseNode
      
      Update rql.stmts.Union class:
      - add a new attribute, i.e:  `children: List["rql.stmts.Select"]`
      
      Update rql.RQLHelper simplify & _simplify methods:
      - remove call to cast method, no more need to cast from BaseNode to Select
      
      Also:
      - Try to harmonize type signature for get_description methods
      - Remove now obsolete comments related to type hints
      - type vconsts as a List of Constant
      847f5057c319
  9. 14 Jun, 2021 2 commits
  10. 04 May, 2021 1 commit
  11. 27 Apr, 2021 1 commit
    • Nsukami Patrick's avatar
      mypy: Add types within stcheck.py module · fe99689fd731
      Nsukami Patrick authored
      - Add types within stcheck.py module
      - Update the accept & leave methods signatures inside the VisitableMixIn class
      - Redefine type (and set a type alias) for Select.vargraph attribute
      fe99689fd731
  12. 16 Apr, 2021 1 commit
  13. 19 Apr, 2021 2 commits
  14. 16 Apr, 2021 2 commits
  15. 30 Mar, 2021 1 commit
  16. 23 Mar, 2021 1 commit
  17. 16 Mar, 2021 1 commit
  18. 09 Mar, 2021 1 commit
  19. 20 Jul, 2020 1 commit
  20. 26 Jan, 2021 1 commit
  21. 06 Nov, 2019 1 commit
  22. 13 Feb, 2019 12 commits