mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-13 01:56:55 +00:00
Compare commits
2
Commits
v2.0
...
v2.0.0.post2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf59ef4478 | ||
|
|
6b1f7d8eaa |
@@ -0,0 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
<!-- refer to https://keepachangelog.com/en/1.0.0/ for guidance -->
|
||||
|
||||
## 2.0.0.post2
|
||||
|
||||
### Added
|
||||
- Added this changelog.
|
||||
|
||||
### Fixed
|
||||
- Fixed code completion for `DCMotor` and `Motor` classes in MS Python VS Code extension.
|
||||
- Fixed missing `DCMotor` type in `ev3devices`.
|
||||
+10
-2
@@ -1,10 +1,18 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Copyright (c) 2018-2020 The Pybricks Authors
|
||||
# Copyright (c) 2018-2022 The Pybricks Authors
|
||||
|
||||
"""LEGO® MINDSTORMS® EV3 motors and sensors."""
|
||||
|
||||
from .parameters import Direction as _Direction
|
||||
from ._common import Motor # noqa E402
|
||||
from ._common import DCMotor as _DCMotor, Motor as _Motor
|
||||
|
||||
|
||||
class DCMotor(_DCMotor):
|
||||
pass
|
||||
|
||||
|
||||
class Motor(_Motor):
|
||||
pass
|
||||
|
||||
|
||||
class TouchSensor:
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Copyright (c) 2020 The Pybricks Authors
|
||||
# Copyright (c) 2020-2022 The Pybricks Authors
|
||||
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
from .parameters import Color, Direction, Port, Button
|
||||
from ._common import Motor # noqa E402
|
||||
from ._common import DCMotor as _DCMotor, Motor as _Motor
|
||||
|
||||
class DCMotor(_DCMotor): ...
|
||||
class Motor(_Motor): ...
|
||||
|
||||
class TouchSensor:
|
||||
def __init__(self, port: Port): ...
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "pybricks"
|
||||
version = "2.0.0.post1"
|
||||
version = "2.0.0.post2"
|
||||
description = "Documentation and user-API stubs for Pybricks MicroPython"
|
||||
authors = ["The Pybricks Authors <dev@pybricks.com>"]
|
||||
maintainers = ["Laurens Valk <laurens@pybricks.com>", "David Lechner <david@pybricks.com>" ]
|
||||
@@ -12,7 +12,7 @@ documentation = "https://pybricks.github.io/ev3-micropython/"
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: Implementation :: MicroPython",
|
||||
]
|
||||
include = ["pybricks/py.typed"]
|
||||
include = ["CHANGELOG.md", "pybricks/py.typed"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
|
||||
Reference in New Issue
Block a user