- 03 Jan, 2022 1 commit
-
-
Frank Bessou authored
-
- 22 Dec, 2021 2 commits
-
-
Frank Bessou authored
This allows to support pyright which doesn't support sub-typing of conditional types. See https://github.com/microsoft/pyright/issues/2047.
-
Frank Bessou authored
Not a breaking change since no version has been released.
-
- 02 Dec, 2021 1 commit
-
-
Nsukami Patrick authored
-
- 25 Nov, 2021 4 commits
-
-
Nsukami Patrick authored
-
Nsukami Patrick authored
update undo_manager property, type: self._undo_manager as SelectionManager and fix: rql/stmts.py:424: error: Cannot determine type of "_undo_manager" [has-type] rewrite the undo_manager function and make sure it always returns a SelectionManager
-
Nsukami Patrick authored
-
Nsukami Patrick authored
- improve type aliases, Select is not a statement - pick better names for type aliases
-
- 23 Nov, 2021 1 commit
-
-
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
-
- 09 Oct, 2021 2 commits
-
-
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
-
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
-
- 04 Aug, 2021 1 commit
-
-
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
-
- 23 Jul, 2021 2 commits
-
-
Nsukami Patrick authored
-
Nsukami Patrick authored
- RQLHelper __init__ method takes a parameter `resolver_class` - `revolver_class` is anything implementing the interface of ETypeResolver class - create a protocol named `ResolvesEType` that respect that interface
-
- 22 Jul, 2021 1 commit
-
-
Nsukami Patrick authored
-
- 14 Jun, 2021 2 commits
-
-
Nsukami Patrick authored
-
Frank Bessou authored
1. Define a custom type: TranslationFunction: This depends on `Protocol` which is only available on python >= 3.8. `typing_extensions` provides it for lower versions. 2. Update get_description function signature: For `tr` parameter, Use TranslationFunction instead of Callable[[str, str], str] 3. get_description signature redefined, stop ignoring call-arg errors
-
- 04 May, 2021 1 commit
-
-
Nsukami Patrick authored
- update tox configuration, add black environment - format the whole project - update Gitlab CI config add a job for black
-
- 27 Apr, 2021 1 commit
-
-
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
-
- 16 Apr, 2021 1 commit
-
-
Nsukami Patrick authored
-
- 20 Jul, 2020 1 commit
-
-
Nsukami Patrick authored
-
- 13 Feb, 2019 1 commit
-
-
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.
-
- 04 Jan, 2016 1 commit
-
-
Julien Cristau authored
-
- 09 Sep, 2015 1 commit
-
-
Julien Cristau authored
Mostly in comments and defunct tools. Related to #1167312
-
- 27 May, 2015 1 commit
-
-
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.
-
- 28 Apr, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 26 Apr, 2010 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : stable
-
- 15 Jul, 2009 1 commit
-
-
Nicolas Chauvat authored
-
- 13 Jul, 2008 1 commit
-
-
Nicolas Chauvat authored
-
- 24 Oct, 2006 1 commit
-
-
"Sylvain ext:(%22) authored
-
- 08 May, 2006 1 commit
-
-
Nicolas Chauvat authored
-