1. 03 Jan, 2022 1 commit
  2. 22 Dec, 2021 2 commits
  3. 02 Dec, 2021 1 commit
  4. 25 Nov, 2021 4 commits
  5. 23 Nov, 2021 1 commit
    • Nsukami Patrick's avatar
      [mypy]: Add type hints for EtypeResolver class: · af2d5233a53f
      Nsukami Patrick authored
      Within rql/analyze.py:
      ----------------------
        add (line 403):
            if self.uid_func:
        and fix:
            error: "None" not callable  [misc]
      
        add (line 548):
            assert self.uid_func_mapping is not None
        and fix:
            Unsupported right operand type for in ("Optional[Dict[Any, Any]]")
      
        change (line 615):
            etypes = frozenset(t for t in self._nonfinal_domain if t not in etypes)
        to:
            etypes = set(t for t in self._nonfinal_domain if t not in etypes)
        and fix:
            Incompatible types in assignment (expression has type "FrozenSet[str]", variable has type "Set[Any]")
      
      
      Within rql/interfaces.py:
      -------------------------
      
      Update ISchema protocol definition:
          add:
              def __contains__():
          and fix:
               error: Unsupported right operand type for in ("ISchema")  [operator]
      
          add:
              def rschema(self, rtype: Any):
          and fix:
              "ISchema" has no attribute "rschema"  [attr-defined]
      
          add:
              def eschema(self, etype: Any):
          and fix:
              "ISchema" has no attribute "eschema"  [attr-defined]
      
      
      See RQL's issue: #15
      af2d5233a53f
  6. 09 Oct, 2021 2 commits
    • Nsukami Patrick's avatar
      refactor(mypy): Improve type hints inside OperatorExpressionMixin class · 947a89a37413
      Nsukami Patrick authored
      - define necessary attributes within a protocol
      - this protocol should have:
         - operator attribute
         - iget_nodes method
         - get_type method
      - use the newly defined protocol to type `self` within OperatorExpressionMixin class
      - remove useless type-ignore comments
      947a89a37413
    • Nsukami Patrick's avatar
      refactor(mypy): Improve HSMixin type hints · 97efc3ea82ca
      Nsukami Patrick authored
      Inside rqltypes module
      - define a protocol to describe an object that:
        - has an attribute named `parent`
        - parent attribute should have an attribute named `relation`
        - a method named `get_type`
      
      Inside HSMixin:
      - remove now useless type:ignore comments
      - type `self` as a `HasHand` type
      
      Inside nodes.Constant `get_type` method could return a str or None:
      - make sure `get_type` always returns a str
      - change the default value of `_uidtype` from None to empty string
      - type `_uidtype` as a str
      97efc3ea82ca
  7. 04 Aug, 2021 1 commit
    • Nsukami Patrick's avatar
      refactor(mypy): Finish type hint the rql/__init__.py module · c5fb30b4a17b
      Nsukami Patrick authored
      - Type hint all `parse` functions inside rql/__init__.py
      - Create a type alias to represent what's returned by `parse` functions above
      - Update RQLSTChecker.check method signature:
        * node parameter should be a BaseNode	or any children	of BaseNode class
      - Type hint `copy_uid_node` function
      - Remove useless variable: pyparse = parse
      - Format without any compromise
      c5fb30b4a17b
  8. 23 Jul, 2021 2 commits
  9. 22 Jul, 2021 1 commit
  10. 14 Jun, 2021 2 commits
  11. 04 May, 2021 1 commit
  12. 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
  13. 16 Apr, 2021 1 commit
  14. 20 Jul, 2020 1 commit
  15. 13 Feb, 2019 1 commit
    • Simon Chabot's avatar
      autopep8: F841 undefined name · abda658fe2ae
      Simon Chabot authored
      Special cases:
          - `long` and `unicode` no longer exist in python 3. I added a "# noqa"
            comment to avoid warnings.
      
          - `cmp` method no longer exist in python 3. It was used in the
            `test/unittest_analyze.py` file in the __cmp__ method. It appears that
            when this method is removed, all the tests are still valid. Therefore I
            dropped it.
      abda658fe2ae
  16. 04 Jan, 2016 1 commit
  17. 09 Sep, 2015 1 commit
  18. 27 May, 2015 1 commit
    • Julien Cristau's avatar
      [pkg] Use setuptools · d9762b5a4604
      Julien Cristau authored
      Move sources to a 'rql' subdirectory, drop the NO_SETUPTOOLS code path
      (essentially rewriting all of setup.py).  This avoids a conflict between
      our parser.py and the stdlib when running setup.py.  Closes #278637.
      d9762b5a4604
  19. 28 Apr, 2010 1 commit
  20. 26 Apr, 2010 1 commit
  21. 15 Jul, 2009 1 commit
  22. 13 Jul, 2008 1 commit
  23. 24 Oct, 2006 1 commit
  24. 08 May, 2006 1 commit