Typecheck xmllint with ament_mypy#568
Conversation
|
Hmm it seems colcon cannot resolve a build tree since |
|
|
||
|
|
||
| def pytest_configure(config): | ||
| from _pytest.config import Config |
There was a problem hiding this comment.
I don't think we should be importing from a private module.
| from _pytest.config import Config | |
| from pytest import Config |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
There was a problem hiding this comment.
Following the pattern in other files, only a single newline between copyright and imports.
| import time | ||
| from typing import Any | ||
| from typing import Literal | ||
| from typing_extensions import TypeAlias |
There was a problem hiding this comment.
This will effectively become a new dependency for all of ROS 2. Is there any way to avoid it?
I see. While I think there's an acute risk of this issue manifesting with linters-on-linters, I don't think this statement is universally true. That said, this change would create a cyclic dependency under the current interpretation of dependency scopes. How would you like to move forward with this PR? |
|
I think leaving in draft is probably best since this would be a good feature if the definition of cyclic dependencies ever gets updated. If you would prefer closing and possible future re-opening is better I would be fine with that. |
Add ament_mypy type checking to ament_xmllint.